CPlotView:Empty
The Empty method deletes all members of the class data matrix of the CPlotView.
CPlotView:Empty() |
This deletes all points from the class data matrix used for plotting. Usually, this method is called before adding new points for plotting a new series.
Suppose a CPlotView V exists and contains points that were plotted. The following script Empties the data array and then adds new points to a plot series:
|
-- clear existing data from the array |
|
-- x, y, xerrorbar, yerrorbar |
|
-- x, y, xerrorbar, yerrorbar |
|
-- x, y, yerrorbar |
|
-- x, y, yerrorbar |
|
-- add the data as a new series |