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.
bSuccess is the returned success code. On success it is true, otherwise 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 data array |
|
-- 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 |