Re: a simple color question (very simple) [message #26344] |
Wed, 22 August 2001 09:58 |
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
|
|
|
Re: a simple color question (very simple) [message #26355 is a reply to message #26344] |
Tue, 21 August 2001 12:39  |
thompson
Messages: 584 Registered: August 1991
|
Senior Member |
|
|
"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
|
|
|