CPlot:GetPt
The GetPt method returns a PlotPoint type table containing the properties of a plot point. The related ToTable method returns an indexed table of PlotPoint tables.
lua_table = CPlot:GetPt(nIndex)
where lua_table is a PlotPoint table.
On failure, nil is returned.
The following script attaches a CPlotView from the Mira desktop and prints the properties of the point at index 15 in plot series 1:
|
-- select the target plot window |
|
-- if not successful, exit the script |
|
-- get a CPlot object for series 1 |
|
|
|
-- Get the point data for index 15 |
|
|
-- print the properties of the point at index 15 |
|
|
-- print a table heading |
|
|
|
-- print all properties of the point |
CPlotView class, CPlot class, ToTable, PlotPoint table
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.