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

Home » Public Forums » archive » Using FSC_COLOR with postscript devices
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
Using FSC_COLOR with postscript devices [message #55294] Thu, 16 August 2007 10:24 Go to next message
willettk is currently offline  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 Go to previous message
willettk is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Question on collection change - MOD07 air profile
Next Topic: Runtime license: newbie questions

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

Current Time: Fri Oct 10 11:06:07 PDT 2025

Total time taken to generate the page: 0.88026 seconds