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

Home » Public Forums » archive » Usage of System Variables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Usage of System Variables [message #18160] Thu, 02 December 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
A colleague and I were having a discussion recently about system
variables in IDL. My colleague regularly uses system variables such as
!p.region, !p.font, !p.margin for configuring plots. My opinion is that
system variables should be used as little as possible. In fact the only
system variable I ever modify is !p.multi for creating multiple plots.
Otherwise I prefer to use keywords to plot, surface, tv, tvscl, etc.

It seems to me that modifying global system variables is not a good
idea, since they have a global effect. These days you can write
applications which run while leaving the IDL command line active, and
setting/modifying system variables in this case sounds like a recipe for
disaster.

Can anyone think of other cases where setting a system variable is the
only way to achieve the desired effect (e.g. !p.multi)?

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Focus
Next Topic: Multiplying a cube by a vector

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

Current Time: Wed Oct 08 17:23:42 PDT 2025

Total time taken to generate the page: 0.00388 seconds