Re: Gray-scale PostScript output from mma?
- To: mathgroup at yoda.physics.unc.edu
- Subject: Re: Gray-scale PostScript output from mma?
- From: twj
- Date: Fri, 13 Nov 92 09:55:33 CST
> Thanks in advance for any help.
> I have this ParametricPlot3D etc. plots from
>Mathematica 2.1 (RS/6000 version). I saved the
>output in PostScript, and the GhostScript-Ghostview
>combination is able to display the PostScript
>in color. In other words, the graphic is
>separated from Mathemtica. The problem is
>our hardcopy printer does not yet support
> How can I fool Mathematica to not use color
>in generating PostScript? Rather, grayscale
>PostScript is more desirable for printing
This is the purpose of ColorOutput which is an option of all
The simplest way to use this for your purpose is
Show[ obj, ColorOutput -> GrayLevel]
this will use an internal conversion algorithm to ensure that only
PostScript commands setgray appear in the output.
If you want to supply your own function this can be done as so:
fun[ RGBColor[ r_, g_, b_]] := GrayLevel[ (r+g+b)/3.]
fun[ g_GrayLevel] := g
Show[ obj, ColorOutput -> fun]
Prev by Date:
Re: Pade Approximants
Next by Date:
Previous by thread:
Gray-scale PostScript output from mma?
Next by thread: