CPlot:ToTable
The ToTable method creates an array containing PlotPoint tables, one for each point in the plot series. Alternatively, the properties of one point may be obtained using the GetPt method.
tbl = CPlot:ToTable()
where tbl is an array of PlotPoint tables (see below).
On failure, nil is returned.
The following script attaches a CPlotView from the Mira desktop and prints the point data for plot series 1:
|
-- select the target plot window |
|
-- if not successful, exit the script |
|
-- get a CPlot object for series 1 |
|
|
|
-- convert the plot series to a table |
|
|
-- print the PlotPoint table for every point in plot series 1: |
|
|
-- print a table heading |
|
-- for each index of tbl |
|
-- assign the n-th point to name "t" |
|
|
|
-- print all properties of the point |
|
|
CPlotView class, CPlot class, GetPt, PlotPoint table
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.