comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Removing Graphics from IDL 8.1 Window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Removing Graphics from IDL 8.1 Window [message #78645 is a reply to message #78644] Fri, 02 December 2011 12:36 Go to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On 12/2/2011 11:27 AM, David Fanning wrote:
> 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)


The Delete method should do this, but it's working perhaps a bit too
literally -- if I delete the plot, the axes remain. I think this is a
bug, but the workaround is straightforward:

w = window()
p = plot(/test, /current)
foreach axis, p['axis*'] do axis.delete
p.delete
c = contour(/test, /current)

mp
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Significant Update of cgImage
Next Topic: WIDGET_CONTROL: Invalid widget identifier:

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:58:49 PDT 2025

Total time taken to generate the page: 0.55720 seconds