Re: Dumb PostScript Defaults [message #73844] |
Wed, 01 December 2010 10:06 |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article <MPG.2760232c3c9e047e98989f@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:
> Folks,
>
> I'm tired of getting e-mails that tell me my "stupid
> program doesn't work in PostScript". My programs don't
> work in PostScript because of stupid PostScript defaults!
>
> Anyway, I just updated all my "device independent"
> programs to set the damn PostScript device properly
> so things just work. I don't normally recommend (or
> write!) programs that do things behind your back,
> but in this case it seems justified.
>
> Here is what I am doing:
>
> IF !D.Name EQ 'PS' THEN Device, COLOR=1, BITS_PER_PIXEL=8
>
> Can anyone think of a reason why this would NOT be a good idea?
This is in my PS_ON procedure
DEVICE, COLOR = 1, BITS_PER_PIXEL = 8 ;Turn on 24-bit color for images
Ken Bowman
|
|
|
Re: Dumb PostScript Defaults [message #73846 is a reply to message #73844] |
Wed, 01 December 2010 08:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> Page charges for colour plots in journals aside, nope.
Well, you have to set these keywords to get grayscale, even!
The default is black and white. For goodness sakes!
Maybe after working for, what, 40 days straight, I just
feel like ranting about IDL, but these PostScript defaults
just really ought to be fixed. It's a travesty.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Dumb PostScript Defaults [message #73847 is a reply to message #73846] |
Wed, 01 December 2010 08:36  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
David Fanning wrote:
> Folks,
>
> I'm tired of getting e-mails that tell me my "stupid
> program doesn't work in PostScript". My programs don't
> work in PostScript because of stupid PostScript defaults!
>
> Anyway, I just updated all my "device independent"
> programs to set the damn PostScript device properly
> so things just work. I don't normally recommend (or
> write!) programs that do things behind your back,
> but in this case it seems justified.
>
> Here is what I am doing:
>
> IF !D.Name EQ 'PS' THEN Device, COLOR=1, BITS_PER_PIXEL=8
>
> Can anyone think of a reason why this would NOT be a good idea?
Page charges for colour plots in journals aside, nope.
I use Liam's pson.pro for *all* my day-to-day Postscript output. And there is a similar line in that procedure:
device, filename=filename, /color, bits_per_pixel=8
But, I'm sure someone will still complain about it. :o)
cheers,
paulv
|
|
|