CPlotView:CountSeries
The Count method returns the number of plot series in the CPlotView window.
nSeries = CPlotView:CountSeries() |
The following script fragment plots some points in a CPlotView. It then returns the number of plots series in the plot window:
|
-- create a CPlotView |
|
-- add a point to the data array |
|
-- add 99 more points |
|
-- plot 100 points in a new plot window |
|
-- empty all the points |
|
-- add 1 point to the data array |
|
-- plot the point as a new series |
|
-- count the number of series |
|
-- result: n = 2 |