| Search Locate Previous Next | Contents |
This will accept numeric data as a simple vector, a vector of vectors, or a matrix and plot a linegraph (timeseries).
chPlot linedata
Examples
MAT?15 2½4+¼6
chSet('Style' 'Boxed,Nomark')('Head' 'Line Graph')('Key' 'First,Second')
chSet('YStyle' 'ForceZero')('Ytick' 2 1)
chPlot MAT
PGchClose
In the case of a vector of vectors, each item is padded with the current missing value before the data is plotted.
In the case of a matrix, the chart style determines whether the data is expected in columns (the default) or in rows.
The default is to take a matrix as a set of Y-values and plot them all as lines against a uniform X-axis. This is suitable for most timeseries data. If the X-values are also irregular, you may pass them as the first column, and call chSet 'XYplot' to get the desired effect. Alternatively use the versus property to establish the X-variable.
See also ...
chScatter x/y scatter plot
Linegraph Style