The Delete method deletes a graphic.
Tip: To completely free all of the resources used by the graphic window you should always call the Close method or click the close window button on the widget. Calling obj_destroy or calling the Delete or Erase methods will not free all of the objects.
Example
Copy and paste the first two lines to the IDL command line to draw the plot and the text annotation. Then paste the last line separately to see how it deletes the annotation.
plot = PLOT(/TEST)
t1 = text(0.5, 0.8, 'Text 1')
t1.Delete
Syntax
graphic.Delete
Arguments
None
Keywords
None
Version History
See Also
Select Method