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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: grayscale vs. color [message #20107] Tue, 16 May 2000 00:00
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
I always have cases when my graphs from IDL for publications produce,
let's say, not quite desired colors when printed. I can't blame it on
IDL as they look fine on the screen, its the RGB to CMYK conversion.
Color typesetting was much better with that then our costly color laser
jet. However, even for grayscale graphs, I switched to always editing
IDL ps files in a more suited for that graphics package, like Adobe
Illustrator or Corel Draw. They at least have the ability to show on the
screen how is it going to look like on the paper, and then you can tweak
the colors, shades of gray, etc.
Good luck,
Pavel
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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 14:17:13 PDT 2025

Total time taken to generate the page: 1.04560 seconds