Re: System Variable Behavior Changed in IDL 6.0 [message #38617 is a reply to message #38488] |
Thu, 11 March 2004 13:01  |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
Hi David,
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1ab9a7d49f84162c9896f7@news.frii.com...
> Folks,
>
> I wanted to display some images today in a !P.MULTI situation.
> It used to be that my TVIMAGE program could handle !P.MULTI
> events automatically. (Don't try this at home with TV.) But
> this appeared to be broken in IDL 6.0. No !P.MULTI behavior
> at all!
>
> I traced the problem to a change in how system variables
> behave in IDL 6.0. Here is a sequence of plots in IDL 5.6.
> Notice now the !X and !Y window fields update the plot
> location as you go.
>
> [...]
>
> Here is the same sequence of commands in IDL 6.0. No updating of
> the system variables. :-(
>
> IDL> print, !Version
> { x86 Win32 Windows Microsoft Windows 6.0 Jun 27 2003 32 64}
>
> [...]
That's a bummer! Good news and bad news: mine on Windows is working
OK...
IDL> Print, !Version
{ x86 Win32 Windows Microsoft Windows 6.0 Jun 27 2003 32 64}
IDL> !P.Multi=[0,2,3]
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.0562550 0.706672 0.483130 0.980005
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.556255 0.706672 0.983130 0.980005
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.0562550 0.373338 0.483130 0.646672
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.556255 0.373338 0.983130 0.646672
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.0562550 0.0400050 0.483130 0.313338
IDL> plot, findgen(11)
IDL> print, !X.Window[0], !Y.Window[0], !X.Window[1], !Y.Window[1]
0.556255 0.0400050 0.983130 0.313338
I did this at startup to the 'WIN' device, what device were you drawing
to? Let us know what you find out.
Cheers,
--
-Dick
Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
|
|
|