NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20011212: Postscript color question

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



John,

The GEMPAK ps device driver is configured to write out the RGB colors
as are the $GEMTBL/colors tables.

The postscript command for CMYK is "setcmykcolor"- analogous to the setrgbcolor
but with the 4 stack values. The DeviceCMYK command is used to
set the returned color values to the CMYK space.

Steve Chiswell
Unidata User Support

On Tue, 11 Dec 2001, John Hobbie wrote:

> How do you change the color format from RGB  to CYMK in
> postscript?  Is this a simple table fix, or is it imbedded in the driver
> source code?
>
> Imbedded in the text of all the postscript output files is a command
> to set the color to RGB format.   Since most color printers use
> CYMK, to make plots in black, three inks are used: cyan, yellow
> and magenta.   The cost of replacing color cartridges -- in our case
> three entire cartridges instead of one, black -- is getting to be a
> problem.
>
> I am considering a script file that does a search and replace of the
> postscript RGB command in the plot file, but there should a way of
> changing the plot file text to begin with.
>
> Thanks in advance for your advice
>
> John Hobbie
>  NSBF
>  address@hidden
>