Using FSC_COLOR with postscript devices [message #55294] |
Thu, 16 August 2007 10:24  |
willettk
Messages: 20 Registered: October 2006
|
Junior Member |
|
|
G'day all,
I've been using David's excellent FSC_COLOR routine for some time now
on my Mac, with very good results. Apparently I've never tried to make
a hard copy of my plots, though, because I'm having a good deal of
trouble getting them to appear in the PS as they do on my terminal. No
matter what the settings, every line is set to the _last_ color I
define using FSC_COLOR. For example, the following code produces three
green lines with green axes on a white background in the PS device:
;;;;;;;;
pro colortest
device, decomposed = 0
set_plot,'ps'
device,filename='test.ps', /color, bits_per_pixel = 8
black = fsc_color("Black")
red = fsc_color("Red")
green = fsc_color("Green")
plot, indgen(10)+1, color = black
oplot, indgen(10)+2, color = red
oplot, indgen(10)+3, color = green
device, /close
end
;;;;;;
I've also tried with DECOMPOSED = 0 to no change. I _can_ set my
colors in the old-fashioned way using TVLCT, but I'd much prefer the
easy definitions of FSC_COLOR. I've read David's chapter on working
with color and several related postings, but haven't pinned down the
problem yet. Any advice?
Thanks very much!
|
|
|
Re: Using FSC_COLOR with postscript devices [message #55375 is a reply to message #55294] |
Thu, 16 August 2007 14:44  |
willettk
Messages: 20 Registered: October 2006
|
Junior Member |
|
|
On Aug 16, 1:49 pm, David Fanning <da...@dfanning.com> wrote:
> wille...@gmail.com writes:
>> Thanks for the advice. I downloaded the newer version (mine was from
>> 2004), but the problem still remains. I still have to use the
>> colorindex parameter in order to get everything to work, but I believe
>> I understand the problem (and it's not too hard of a fix).
>
> Say what!? You may have downloaded the newer version, but
> I don't think you are using it. In your test program, using
> the latest version of FSC_COLOR the indices of the black, red,
> and green indices should be 173, 232, and 197, respectively.
>
> Mine works perfectly, for what it is worth. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
You're so wise.
Yep - another software package was calling the old version of
FSC_COLOR, which I hadn't checked closely enough. Works fine now
without the color indices - thanks again for your help.
-KW
|
|
|