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

Home » Public Forums » archive » Re: grayscale vs. color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: grayscale vs. color [message #20108 is a reply to message #20107] Tue, 16 May 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Andrew (noymer@my-deja.com) writes:

> Sorry if this is a stupid question. I am making some line
> graphs (eps files) for a book, using IDL direct graphics.
> Some of the graphs have several series and it would be nice
> to use solid grey as an alternative to dot-dash-double-dot-dash-
> double-dotdash or whatever for some lines.
>
> In the past, I have always loaded a colortable and there is
> always some color, not hard to find, that turns into the just
> right shade of grey when it goes to the laser printer. This color
> is not always "grey" --- it's whatever color prints out grey.
>
> Trouble is, this time it's going to some imagesetter (no idea
> which kind) far far away. Plus they don't want color and they'll
> probably freak if they see color. I don't know what they'll say to
> a grey-like-color in a color EPS file; maybe that's kosher, but isn't
> there a way to have grayscale in a garden-variety B&W EPS file?
>
> Is there a quick and dirty way to load a colortable that is
> really just a grayscale? I looked in the material I had but didn't
> find anything.

Well, you want to stay away from those very light grays,
which don't show up very well on white PostScript background,
but how about something like this, taking 10 colors from
middle gray to black:

LoadCT, 0, NColors=20, Bottom=1
plotcolors = Indgen(10) + 11
white = GetColor('white', !D.Table_Size-2)
black = GetColor('black', !D.Table_Size-3)
Device, Decomposed=0
Plot, LoadData(17), YRange=[0,100], Color=black, Back=white
FOR j=0,8 DO OPlot, LoadData(17), Color=plotColors[j]

Looks wonderful on my display. And I bet it looks just as good
in PostScript. Be sure to turn the Colors keyword ON when you
set up the PostScript device. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: newbie:Volume Rendering on IDL
Next Topic: Re: Need help to optimize for speed

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

Current Time: Sun Oct 12 11:49:27 PDT 2025

Total time taken to generate the page: 1.10584 seconds