CPlotView:GetPlot
The GetPlot method returns a CPlot object for accessing the points in a plot series of a CPlotView.
CPlot = CPlotView:GetPlot(nIndex) |
CPlot = CPlotView:GetPlot() |
nIndex is the index of the plot series, from 1 to CPlotView:Count. If omitted, the current series is selected, or defaults to series 1 if there is only 1 series in the CPlotView.
Return value:
CPlot is a new CPlot object attached to the current plot series. It is nil on failure.
The following script gets a CPlot object for series 1 in a CPlotView on the Mira desktop:
|
-- select the target plot window |
|
-- if not successful, exit the script |
|
-- get a CPlot object for series 1 |
|
|
|
-- number of points in the plot series |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.