
ArrayPlotter |
ptolemy.actor.lib.gui.ArrayPlotter |
A plotter that plots a sequence of arrays of doubles.
This plotter contains an instance of the Plot
class from the Ptolemy plot package as a public member. Data at
the input, which can consist of any number of channels, are plotted
on this instance. Each input channel is plotted as a separate data set.
Each input token is an array of doubles.
The iterationsPerUpdate parameter can be used to fine tune
the display. It can be quite expensive to generate the display, and
by default, this actor generates it on every firing. If
iterationsPerUpdate is set to some integer greater than
one, then it specifies how many iterations should be executed
between updates. Thus, if iterationsPerUpdate = 2, then every
second time this actor fires, it will update the display. That is,
it will update its display on the first firing, the third, the
fifth, etc. It will, however, consume its inputs on every firing.
The plot is always updated in the wrapup() method.
Note that this can be used to generate live plots, like SequenceScope,
but it has fewer drawing artifacts than SequenceScope since it does
not use XOR drawing mode.
Author(s): Edward A. Lee
Version:$Id: ArrayPlotter.java,v 1.15 2005/07/08 19:56:18 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (cxh)
input
Input port, which receives an array of doubles.
iterationsPerUpdate
The number of iterations between updates of the display
on the screen.
This parameter has type IntToken, with default value 1.
Its value must be non-negative.
xUnit
The increment of the X axis.
xInit
The start point of the X axis.