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

Home » Public Forums » archive » Re: PostScript Background Color Preference
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: PostScript Background Color Preference [message #73603 is a reply to message #73601] Wed, 17 November 2010 08:42 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Paul van Delst writes:
>
>> For default, I'm happy with either a white (ala NG graphics) or black (ala DG graphics) background onscreen - which I
>> interpret as effectively "transparent" so that printouts will be as one expects. I would recommend you adopt a white
>> background so you're seen as being aligned with the bright and sunny future direction of graphics in IDL (i.e. NG)
>
> I *have* adopted a white background. But just
> as you assume black is "transparent" because of
> long exposure to the quirks of IDL, I assume
> background is "white" when I make a PostScript
> file.

By default, yes. That is, if the user doesn't specify *any* background colour.

> My new routines are giving us a new opportunity
> to interpret the world the way it "ought to be",
> rather than the way it "always has been". :-)

I reckon just go with white background everywhere by default. People should be used to seeing white background graphics
onscreen nowadays.

Simple for you to code and simple for neophytes to grok what will happen when they print. The older IDL codgers will
have to make their own way.... :o)

>
> Cheers,
>
> David
>
> P.S. While admiring your "black is transparent"
> approach, I can't help wondering what trick of
> perception you use to get colors that work correctly
> on both black and white backgrounds. :-)

Very low tech, non-scalable solution. In my DG code, I do stuff like:
yellow_color = KEYWORD_SET(ps) ? cyan : yellow
so onscreen I have yellow lines on black background. For PS output, the "yellow" becomes blue on white background.

With NG I just don't worry about it any more (i.e. I never use yellow to plot :o)

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Extracting info from the ASCII file with IDL
Next Topic: Preferences gone mad

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

Current Time: Sat Oct 11 15:12:39 PDT 2025

Total time taken to generate the page: 1.27811 seconds