CPlotView:Remove
The Remove method deletes a data point from the class data matrix. This does not remove a point from the plot window.
bSuccess = CPlotView:Remove( index ) |
index is the array index of the point to remove. See Remarks.
bSuccess is returned true if the point is successfully removed.
On failure, this method returns false.
The point was added at an index that is any integer number. This method takes the index at which the point was added, and not its sequential index in the class data matrix. The index to use is the value returned by the Add method or the Find method.
The following script adds 100 points to a CPlotView using particular insertion indices:
|
-- create a CPlotView |
|
-- add a point to the internal data matrix |
|
-- save index of the added point |
|
-- add a point with y errorbar |
|
-- add a point with x,y errorbars |
|
-- remove the point |
|
-- result: removed index 2 |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.