ca.nengo.plot.impl
Class DefaultPlotter

java.lang.Object
  extended by ca.nengo.plot.Plotter
      extended by ca.nengo.plot.impl.DefaultPlotter

public class DefaultPlotter
extends Plotter

Default Plotter implementation.

Author:
Bryan Tripp

Constructor Summary
DefaultPlotter()
           
 
Method Summary
 void doPlot(float[] domain, float[] vector, java.lang.String title)
           
 void doPlot(float[] vector, java.lang.String title)
           
 void doPlot(Function function, float start, float increment, float end, java.lang.String title)
           
 void doPlot(java.util.List<TimeSeries> series, java.util.List<SpikePattern> patterns, java.lang.String title)
           
 void doPlot(NEFEnsemble ensemble)
           
 void doPlot(NEFEnsemble ensemble, java.lang.String name)
           
 void doPlot(SpikePattern pattern)
           
 void doPlot(TimeSeries series, java.lang.String title)
           
 void doPlot(TimeSeries ideal, TimeSeries actual, java.lang.String title)
           
 void doPlotMSE(NEFEnsemble ensemble, DecodedOrigin origin, java.lang.String name)
           
 ChartPanel getBarChart(float[] vector, java.lang.String title)
           
protected  void showChart(JFreeChart chart, java.lang.String title)
           
 
Methods inherited from class ca.nengo.plot.Plotter
closeAll, createFrame, filter, plot, plot, plot, plot, plot, plot, plot, plot, plot, plot, plot, showPlot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlotter

public DefaultPlotter()
Method Detail

doPlot

public void doPlot(TimeSeries series,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
series - TimeSeries to plot
title - Plot title
See Also:
Plotter.doPlot(ca.nengo.util.TimeSeries, java.lang.String)

doPlot

public void doPlot(TimeSeries ideal,
                   TimeSeries actual,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
ideal - Ideal time series
actual - Actual time series
title - Plot title
See Also:
Plotter.doPlot(ca.nengo.util.TimeSeries, ca.nengo.util.TimeSeries, java.lang.String)

doPlot

public void doPlot(java.util.List<TimeSeries> series,
                   java.util.List<SpikePattern> patterns,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
series - A list of TimeSeries to plot (can be null if none)
patterns - A list of SpikePatterns to plot (can be null if none)
title - Plot title
See Also:
Plotter.doPlot(java.util.List, java.util.List, java.lang.String)

doPlot

public void doPlot(NEFEnsemble ensemble,
                   java.lang.String name)
Specified by:
doPlot in class Plotter
Parameters:
ensemble - NEFEnsemble from which origin arises
name - Name of origin (must be a DecodedOrigin, not one derived from a combination of neuron origins)
See Also:
Plotter.doPlot(ca.nengo.model.nef.NEFEnsemble, java.lang.String)

doPlotMSE

public void doPlotMSE(NEFEnsemble ensemble,
                      DecodedOrigin origin,
                      java.lang.String name)

doPlot

public void doPlot(NEFEnsemble ensemble)
Specified by:
doPlot in class Plotter
Parameters:
ensemble - An NEFEnsemble
See Also:
Plotter.doPlot(ca.nengo.model.nef.NEFEnsemble)

doPlot

public void doPlot(SpikePattern pattern)
Specified by:
doPlot in class Plotter
Parameters:
pattern - A SpikePattern for which to plot a raster
See Also:
Plotter.doPlot(ca.nengo.util.SpikePattern)

doPlot

public void doPlot(Function function,
                   float start,
                   float increment,
                   float end,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
function - Function to plot
start - Minimum of input range
increment - Size of incrememnt along input range
end - Maximum of input range
title - Display title of plot
See Also:
Plotter.doPlot(ca.nengo.math.Function, float, float, float, String)

doPlot

public void doPlot(float[] vector,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
vector - Vector of points to plot
title - Display title of plot
See Also:
Plotter.doPlot(float[], String)

getBarChart

public ChartPanel getBarChart(float[] vector,
                              java.lang.String title)

doPlot

public void doPlot(float[] domain,
                   float[] vector,
                   java.lang.String title)
Specified by:
doPlot in class Plotter
Parameters:
domain - Vector of domain values
vector - Vector of range values
title - Display title of plot
See Also:
Plotter.doPlot(float[], float[], java.lang.String)

showChart

protected void showChart(JFreeChart chart,
                         java.lang.String title)