Re: System Variable Behavior Changed in IDL 6.0 [message #38590 is a reply to message #38488] |
Fri, 12 March 2004 09:17   |
Stein Vidar Hagfors H[2]
Messages: 28 Registered: October 2002
|
Junior Member |
|
|
David Fanning <david@dfanning.com> writes:
> Dick Jackson writes:
>
>> 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
>
> Oh, oh. One of these files (there are more than 100) in
> this project from hell must be setting a system variable,
> because if I run the program in a new IDL session, I have
> no problems and IDL acts like it is suppose to. Now, to
> track down the offending file...
See http://idlastro.gsfc.nasa.gov/ftp/pro/plot/cleanplot.pro
(i.e. in the idl astronomy library)
It's a simple matter of "good plotting hygiene" :-)
Recommended usage: Any time you make the assumption that nobody has
changed the !P, !X, !Y, !Z variables and are proved wrong!
--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO
NASA Goddard Space Flight Center, Tel.: 1-301-286-9028
Mail Code 682.3, Bld. 26, Room G-1, Cell: 1-240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
|
|
|