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 plot data |
|
-- add 99 more points |
|
-- plot 100 points in a new plot window |
|
-- empty all the points |
|
-- add 1 point to the plot data |
|
-- plot the point as a new series |
|
-- count the number of series |
|
-- result: n = 2 |
CPlotView class, CountSeriesPoints
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.