CPlotView:Empty


The Empty method deletes all members of the class data matrix of the CPlotView.

Syntax

CPlotView:Empty()

Remarks

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.

Example

Suppose a CPlotView V exists and contains points that were plotted. The following script flushes the plot data and then adds new points to a plot series:

V:Empty()

-- clear existing data from the internal 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

Related Topics

CMatrix class, delete


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.