Removing Graphics from IDL 8.1 Window [message #78646] |
Fri, 02 December 2011 10:27 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Does anyone know how to remove graphics commands from
IDL 8.1 windows so the window can be reused? For example, I
want to put a plot in the window, then later I want
to put a contour plot in the window. I use commands
something like this:
w = window()
w.select
p =plot(indgen(10),/CURRENT)
w.erase
c = contour(/test, /CURRENT)
But, the plot is still there when I resize the
window. If I add p.hide=1, then the plot itself
is hidden, but the axes are still there. (Actually,
everything is still there, but just not displayed.)
What I want is the equivalent of these Coyote Graphics
commands:
cgPlot, indgen(10), /Window
cgContour, cgDemoData(2), /Window
Any suggestions?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|