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. Note that Mira automatically deletes all class objects when the script finishes.
CHistogram:delete()
In place of CHistogram, use the actual name of the object being deleted.
The following script creates a histogram of data and then deletes the CHistogram object.
|
-- create a Histogram object |
|
-- compute a histogram |
|
-- create x axis values |
|
-- plot the histogram |
|
-- clean up memory when done |