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 #78644 is a reply to message #78623] Fri, 02 December 2011 12:43 Go to previous messageGo to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On 12/2/2011 1:36 PM, Mark Piper wrote:
> 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

I checked that this problem is solved correctly in 8.2, where the Erase
method will be available for all NG routines, not just WINDOW.

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 05:04:57 PDT 2025

Total time taken to generate the page: 1.07072 seconds