CHistogram:delete


The delete method deletes an instance of the CHistogram class. Call delete when you are finished using the particular instance of this class. Mira automatically deletes all class objects when the script finishes but, it usually is good practice to delete objects when you are finished with them, at least so that you can re use the name.

Syntax

CHistogram:delete()

Example

The following script creates a histogram of data and then deletes the CHistogram object.

H = CHistogram:new()

-- create a Histogram object

y = H:Calc( TGaussDev(1000000) )

-- compute a histogram

x = TSeries(100)

-- create 100 x axis values

PlotStep( x, y )

-- plot the histogram

H:delete()

-- clean up memory when done

Related Topics

new

CHistogram Class