IDL> w = window(window_title='Reuse this window!') IDL> p0 = plot(/test, /current) IDL> l0 = legend()
can be erased by a call to the Erase method:
which completely erases any NG objects (including dataspaces and annotations) in the window. The window can then be reused for another graphic:
IDL> p1 = image(/test, /current)
Note the use of the CURRENT keyword to direct each visualization to the current NG window.