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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Removing Graphics from IDL 8.1 Window [message #78622] Mon, 05 December 2011 09:16
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> Yay! I was trying to do exactly the same thing as David last week (over a poky DSL line where I could type faster than
> the characters got squirted back via the internets).
>
> I no longer have any hair to tear out when I encounter these type of absurdities. I hope the 8.2 beta test doesn't take
> too long.

I hope IDL 8.2 doesn't (as I fear with such a complex
system!) introduce it's own set of absurdities. :-)

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.")
Re: Removing Graphics from IDL 8.1 Window [message #78623 is a reply to message #78622] Mon, 05 December 2011 09:05 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Mark Piper wrote:
>
> 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.

Yay! I was trying to do exactly the same thing as David last week (over a poky DSL line where I could type faster than
the characters got squirted back via the internets).

I no longer have any hair to tear out when I encounter these type of absurdities. I hope the 8.2 beta test doesn't take
too long.

paulv
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 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
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Thu Oct 09 16:17:35 PDT 2025

Total time taken to generate the page: 0.39824 seconds