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 fragment Empties the data array and then adds new points to a plot series:
V:Empty() |
-- clear existing data from the array |
V:Add( 38.52, 70.5, 3, 12) |
-- x, y, xerrorbar, yerrorbar |
V:Add( 22.52, 150.5, 5, 8) |
-- x, y, xerrorbar, yerrorbar |
V:Add( 30.5, 120.22, 8) |
-- x, y, yerrorbar |
V:Add( 46.5, 90, 16.5) |
-- x, y, yerrorbar |
V:AddSeries() |
-- add the data as a new series |