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

Home » Public Forums » archive » Re: X-windows black on white
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: X-windows black on white [message #5110] Mon, 09 October 1995 00:00
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <45b7tc$naj@cpca3.uea.ac.uk>, t.osborn@uea.ac.uk (T.Osborn) writes:
>
> Hi
>
> I want to have a white background with black foreground as the default when
> using the X device. By having a file called init.pro containing the lines
>
> !p.background=255
> !p.color=0
>
> and having the environment variable IDL_STARTUP set to init, whenever I begin
> an IDL session, the above lines are executed and any X plots come out as I
> want. But if I ever issue the command set_plot,'X' (e.g., after producing
> some output with set_plot,'PS', IDL switches back to a black background
> with a white foreground.
>
> Is there any way to specify that the default should be the other way round?
> Can I somehow specify the !D.FLAGS system variable to do this? If so, how?
>

This should work, since the SET_PLOT command does not change your color table.
Note, however, that if you do imaging, that the first and last colors will be
reversed.

TVLCT, 0, 255, 255, 255
TVLCT, 255, 0, 0, 0

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: problem with call_external()
Next Topic: Re: Named and Anonymous structures ?

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

Current Time: Wed Oct 08 19:19:06 PDT 2025

Total time taken to generate the page: 0.00507 seconds