Re: Removing Graphics from IDL 8.1 Window [message #78622] |
Mon, 05 December 2011 09:16 |
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  |
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  |
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  |
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
|
|
|