|
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.
Syntax
lua_table = CPlot:GetPt(nIndex)
where
lua_table is a
PlotPoint table.
On failure,
nil is returned.
Example
The following script attaches a
CPlotView from the Mira desktop and prints the
properties of the point at index 15 in plot series 1:
|
V = attachlist_plotview()
|
|
|
if V == nil then Exit() end
|
|
|
P = V:GetPlot(1)
|
|
|
if P == nil then Exit("Bad series")
end
|
|
|
t = P:GetPt(15)
|
|
|
if t == nil then Exit("point 15 is
nil") end
|
|
|
|
|
|
Printf("(x,y), (xe,xe), stat,
vis\n")
|
|
|
Printf("(%lg,%lg), (%lg,%lg), %d,
%d\n",
|
|
|
t.x, t.y, t.xe,
t.ye, t.status, t.visible)
|
|
Related Topics
CPlotView class
CPlot class
ToTable
PlotPoint table
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|