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

Home » Public Forums » archive » Re: colors again.
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: colors again. [message #26406] Thu, 30 August 2001 08:18
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lasse Clausen (lbnc@lbnc.de) writes:

> I use the esrg package (espacially the function tvim) to plot my data as
> images. I used the NODATA and the RGB_NODATA keyword to archieve, that
> pixel with the value NODATA will be displayed in the color specified by
> RGB_NODATA - in my case [255,255,255].
> The colortables I'm using go from green over yellow to red. In the
> ps-file I'm making pixel with the value NODATA are now plotted in the
> last color of the colortable (in this case red), although they ought to
> be white.
> If anybody understood what I was just saying, pleas help.

I don't understand much of it, but enough to
get the general idea that you are having
PostScript color problems. Sigh...

PostScript does this funny thing where it switches
the background and foreground colors, then gives
you a white background whether you like it or not.
It can surely be a pain in the neck. After a couple of
years of it, you learn that it's probably not a good
idea to put *any* color you intend to use in your
graphic output in the last color of the color table.
It just leads to nothing but grief. (Using the first
color only leads to aggravation, which is slightly
better.)

I don't really know how to advise you, since I
don't really know what you are doing. But what
I would do is scale my colors and my image so
that I leave that last color alone. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: colors again.
Next Topic: Is your IDL5.4 windows interface flaky too?

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

Current Time: Wed Oct 08 14:53:45 PDT 2025

Total time taken to generate the page: 0.00435 seconds