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

Home » Public Forums » archive » Re: color postscript, colortables and TV
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: color postscript, colortables and TV [message #12903] Mon, 14 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
don shad (dschad@frontiernet.net) writes:

> i am having trouble getting the proper colors to be displayed
> in a color postscript output with custom colormaps. when i use
> a 6 (or 12, or ?) color custom colormap i cannot get images that
> are placed using TV to use this colormap when the device is
> postscript. on-screen the TV images have the correct colors.

In color PostScript you almost always want the Bits_per_Pixel
keyword set to 8. It is 4 by default, which only allows 16
different colors. This is why your colorbar is all red.

Set_Plot, 'PS'
Device, Color=1, Bits_Per_Pixel=8
TV, image

Cheers,

David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Trouble running IDL3 widget programme on IDL4/IDL5
Next Topic: Trouble running IDL3 widget programme on IDL4/IDL5

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

Current Time: Sun Oct 12 01:27:10 PDT 2025

Total time taken to generate the page: 0.86835 seconds