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

Home » Public Forums » archive » Re: WSet to negative value
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: WSet to negative value [message #74505 is a reply to message #74415] Tue, 18 January 2011 12:33 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
VP wrote:
> IDL> print, !version
> { x86 Win32 Windows Microsoft Windows 6.3 Mar 23 2006 32 64}
> IDL> plot, sin(findgen(30)*0.135)
> IDL> window, 1
> IDL> plot,cos(findgen(30)*0.135)
> IDL> wset, -2
> IDL> xyouts,0.5,0.5,'Dada',/normal
>
> Hi David,
>
> Text legend appears in last window for wset, -2 or wset, -2

IDL> print, !version
{ ibmr2 AIX unix AIX 6.4 Mar 24 2007 64 64}
IDL> plot, sin(findgen(30)*0.135)
IDL> window, 1
IDL> plot,cos(findgen(30)*0.135)
IDL> wset, -2
% WSET: Window is closed and unavailable.
% Execution halted at: $MAIN$
IDL> wset, -1
IDL> xyouts,0.5,0.5,'Dada',/normal

Similarly with VP, the text appears in last window for "wset, -1". But, as you can see, "wset, -2" generates an error.

Doing

IDL> wset,0
IDL> wset, -1
IDL> xyouts,0.5,0.5,'Dada',/normal,charsize=4

put a big "Dada" on window #1 (not 0). Looks like "wset, -1" picks the last window opened/created.

Sort like how IDL v8 has the -1 array index capability to indicate the last item in an array..... <ehem>

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Double Xaxis pb with ticks
Next Topic: WSet to negative value

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

Current Time: Sun Oct 12 05:35:28 PDT 2025

Total time taken to generate the page: 0.63982 seconds