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

Home » Public Forums » archive » Re: a simple color question (very simple)
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: a simple color question (very simple) [message #26344] Wed, 22 August 2001 09:58 Go to previous message
Eric Vella is currently offline  Eric Vella
Messages: 8
Registered: April 1999
Junior Member
That beats my method, which was to make a preliminary plot with no data,
just to set the colors!

plot, X, Y, /nodata, color=0, background=255
oplot, X, Y, color=4

"William Thompson" <thompson@orpheus.nascom.nasa.gov> wrote in message
news:9ludd4$1q2$1@skates.gsfc.nasa.gov...
> "Sean Raffuse" <sean@me.wustl.edu> writes:
>
>> No idea why this is difficult for me.
>
>> I would like to change the background color for my graphic window. I am
>> creating a composite image of data over a map projection. The default
>> window color is black, but I would like white. Is this a system variable
or
>> some keyword I am missing?
>
>> Thanks in advance,
>
>> Sean Raffuse
>
> One way to do this is to modify !P.COLOR and !P.BACKGROUND
>
> !p.color = 0
> !p.background = !d.table_size-1
> plot, ...
>
> Or, you can reverse the color table
>
> tvlct, r, g, b, /get
> tvlct, reverse(r), reverse(g), reverse(b)
>
> Bill Thompson
[Message index]
 
Read Message
Read Message
Previous Topic: polyfill errors?
Next Topic: Re: processing widget events from multiple hierarchies

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

Current Time: Thu Oct 09 06:03:27 PDT 2025

Total time taken to generate the page: 0.01094 seconds