CPlotSetPt
The SetPt method sets properties of a plot point to those in a PlotPoint table. Before calling this method, call GetPt to return a PlotPoint table containing the properties of the point, change the desired properties, then call SetPt.
NOTE: Point data changed using this method does not update the point information set usingCPlot:SetInfo. In that case, you may need to call SetInfo again using the updated point data.
CPlot:SetPt(nIndex, PlotPoint)
where nIndex is the index of the point in the CPlot object.
PlotPoint is a PlotPoint table.
On failure, nil is returned.
The following script attaches a CPlotView from the desktop and changes the x errorbar value for point 15 in plot series 1:
|
-- select the target plot window |
|
-- if not successful, exit the script |
|
-- get a CPlot object for series 1 |
|
|
|
-- work with point index 15 |
|
-- Get the point data for index 15 |
|
|
|
-- change the x errorbar value |
|
-- change the point properties |
PlotPoint table
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.