Re: being clever with postscript [message #60253] |
Fri, 09 May 2008 11:10 |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
<ianpaul.freeley@gmail.com> wrote in message
news:446f54e5-5a8c-4a02-8ed7-0095107f1bc3@l64g2000hse.google groups.com...
> OK, here's the situation I'm sick of: I've written a pile of code
> that, after performing some amazing array manipulation, generates some
> beautiful plots. Now I'd like to include the plots in a scientific
> paper by creating encapsulated postscript files. The problem is, for
> many of the plots I will want to convert them to black and white to
> save printing costs. For those that I want to leave in color, I'll
> need both CMYK and RGB versions (CMYK for the printers, and RBG to put
> on-line).
Dr. Freeley,
first, put rubber sheets on your bed.
second, create B&W ps files, do not convert. Colors that are
very different can convert to the same greyscale, and cause
confusion in the b&w output (and you might not even notice).
as for CMYK, in the past I have opened the PS in photoshop of
paintshop pro and just converted to CMTK Tiffs for publication,
although it did run into various problems.
Cheers,
bob
|
|
|
Re: being clever with postscript [message #60265 is a reply to message #60253] |
Thu, 08 May 2008 16:28  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<446f54e5-5a8c-4a02-8ed7-0095107f1bc3@l64g2000hse.googlegroups.com>,
ianpaul.freeley@gmail.com wrote:
> OK, here's the situation I'm sick of: I've written a pile of code
> that, after performing some amazing array manipulation, generates some
> beautiful plots. Now I'd like to include the plots in a scientific
> paper by creating encapsulated postscript files. The problem is, for
> many of the plots I will want to convert them to black and white to
> save printing costs. For those that I want to leave in color, I'll
> need both CMYK and RGB versions (CMYK for the printers, and RBG to put
> on-line).
>
> Can anyone come up with a cleaver wrapper to put around my plot
> commands so that IDL outputs B&W, RGB, and CMYK postscript files? It
> would really be handy if I could open multiple devices to plot to
> simultaneously, but I don't see any way to do that.
>
> I could just write a loop around all my current "device" calls, but I
> was hoping for something more elegant.
>
> cheers,
> IP Freeley
You can look at my ps_on and ps_off routines (idl.tamu.edu) or Liam
Gumley's similar routines. Add the keywords you need and you're set.
Beware, the PS device driver only supports 8-bit color for lines
and the like (24-bit is only for images).
Ken Bowman
|
|
|