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

Home » Public Forums » archive » Re: Change default value of system variable?
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: Change default value of system variable? [message #23839 is a reply to message #23837] Fri, 23 February 2001 10:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
"K. Bowman" wrote:
>
> I prefer to plot with black lines on a white background, so in my
> idl_startup file I include
>
> !P.BACKGROUND = COLOR_24('white') ;Set background color to white
> !P.COLOR = COLOR_24('black') ;Set default draw color to black
>
> (COLOR_24 is my own routine.)
>
> This works fine until I change plot devices and then change back, viz.
>
> flow>idl
> IDL Version 5.3 (IRIX mipseb). (c) 1999, Research Systems, Inc.
> IDL> PRINT, !P.BACKGROUND, !P.COLOR
> 16777215 0
> IDL> SET_PLOT, 'PS'
> IDL> SET_PLOT, 'X'
> IDL> PRINT, !P.BACKGROUND, !P.COLOR
> 0 255
>
> This means that I have to include code to set !P.BACKGROUND and
> !P.COLOR in every time I switch graphics devices. Is there any way to
> change the default value of a built-in system variable?
>
> Thanks, Ken


Run IDL with dbx and try to find the place where !P.Background is set.
This may be a little cumbersome without the IDL sources, but after
about 5 years you may have found the solution ;-)

Now, honestly, I would recommend to follow David's advice to ALWAYS
set colors before issuing any plot command.

Cheers,

Martin

PS: Todd - still have a note lying on my desk to send you this object
file stuff. Just want to give it a few comments before sending it
(otherwise you'd be lost right away). Maybe in a couple of days...

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: !EXCEPT
Next Topic: Re: reading files with date- and time - columns

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

Current Time: Fri Oct 10 09:09:41 PDT 2025

Total time taken to generate the page: 0.39810 seconds