Re: colors again. [message #26406] |
Thu, 30 August 2001 08:18 |
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
|
|
|