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.
CHistogram:delete()
The following script creates a histogram of data and then deletes the CHistogram object.
|
-- create a Histogram object |
|
-- compute a histogram |
|
-- create 100 x axis values |
|
-- plot the histogram |
|
-- clean up memory when done |