TOC PREV

2.11 Using the Plotter

Several of the plots shown above have flaws that can be fixed using the features of the plotter. For instance, the plot shown in figure 2.49 has the default (uninformative) title, the axes are not labeled, and the horizontal axis ranges from 0 to 2551, because in one iteration, the Spectrum actor produces 256 output tokens. These outputs represent frequency bins that range between and radians per second.

The SequencePlotter actor has some pertinent parameters, shown in figure 2.63. The xInit parameter specifies the value to use on the horizontal axis for the first token. The xUnit parameter specifies the value to increment this by for each subsequent token. Setting these to "-PI" and "PI/128" respectively results in the plot shown in figure 2.64.

This plot is better, but still missing useful information. To control more precisely the visual appearance of the plot, click on the second button from the right in the row of buttons at the top right of the plot. This button brings up a format control window. It is shown in figure 2.65, filled in with values that result in the plot shown in figure 2.66. Most of these are self-explanatory, but the following pointers may be useful:

-PI -3.14159, -PI/2 -1.570795, 0 0.0, PI/2 1.570795, PI 3.14159
The syntax in general is:
label value, label value, ...
where the label is any string (enclosed in quotation marks if it includes spaces), and the value is a number.
1 Hint: Notice the "x102" at the bottom right, which indicates that the label "2.5" stands for "250".

TOC PREV