Re: plotting and colors [message #45943] |
Tue, 18 October 2005 09:10 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
rlayberry wrote:
> I have always had problems plotting with colors. For example, I am
> using a PC remotely connected to a linux machine running idl.
>
>
> if i do...
>
> a=findgen(1000)/10.0
>
> window,1,retain=2
> plot,sin(a),background=255
>
>
> then I get black on a red background, whereas the help says I should
> get black on a white background...
>
A classic FAQ. Check out David Fanning's website www.dfanning.com.
While there, you may want to check out this:
http://www.dfanning.com/color_tips/colors24.html
I recommend his book. It is well worth it and you won't feel so guilty
using all of his code :)
You may also want to consider running your X server in 8-bit mode.
-Rick
|
|
|
|
|
Re: plotting and colors [message #45946 is a reply to message #45945] |
Tue, 18 October 2005 07:41  |
yp
Messages: 42 Registered: February 2005
|
Member |
|
|
rlaybe...@hotmail.com wrote:
> I have always had problems plotting with colors. For example, I am
> using a PC remotely connected to a linux machine running idl.
>
>
> if i do...
>
> a=findgen(1000)/10.0
>
> window,1,retain=2
> plot,sin(a),background=255
>
>
> then I get black on a red background, whereas the help says I should
> get black on a white background...
>
> help!
device, decomposed=1 (this should be by default)
!p.background='ffffff'x (for a white background)
!p.color=0 (for drawings in black)
|
|
|