CPlotView:CountSeries
The Count method returns the number of plot series in the CPlotView window.
nSeries = CPlotView:CountSeries() |
On success, this method returns nSeries > 0.
On failure, this method returns 0.
The following script 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 |