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

Home » Public Forums » archive » Re: plotting and colors
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: plotting and colors [message #45943] Tue, 18 October 2005 09:10
Rick Towler is currently offline  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 #45944 is a reply to message #45943] Tue, 18 October 2005 08:41 Go to previous message
rlayberry is currently offline  rlayberry
Messages: 33
Registered: November 2004
Member
thanks!

russ
Re: plotting and colors [message #45945 is a reply to message #45944] Tue, 18 October 2005 08:41 Go to previous message
rlayberry is currently offline  rlayberry
Messages: 33
Registered: November 2004
Member
thanks!

russ
Re: plotting and colors [message #45946 is a reply to message #45945] Tue, 18 October 2005 07:41 Go to previous message
yp is currently offline  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)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: plotting and colors
Next Topic: declare variables

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

Current Time: Fri Oct 10 00:26:46 PDT 2025

Total time taken to generate the page: 1.28126 seconds