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

Home » Public Forums » archive » Windows IDL DLM with Cygwin
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: window [message #46082 is a reply to message #44720] Wed, 02 November 2005 22:47 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ChiChiRuiz writes:

> Hi, I was wondering how to change the default when calling "window".
> I'd like to have a white background with colored plots, rather than the
> default black background with white-color plots. Besides, without
> calling "loadct", I can specify color=250 for a red color plot, how do
> i get a yellow/blue/green color by simply using color=(a number)?

!P.Background = FSC_Color('ivory')
!P.Color = FSC_Color('navy')
Plot, indgen(11), /NoData
Oplot, indgen(11), Color=FSC_Color('blue')
Oplot, Reverse(indgen(11)), Color=FSC_Color('green')

You can find FSC_COLOR here:

http://www.dfanning.com/programs/fsc_color.pro

You are getting a red plot, because you are in color
decomposition turned on mode, which is the default mode
for IDL running with a 24-bit graphics card. You could
set yourself into INDEXED color mode by typing this:

Device, Decomposed=0

But if you use FSC_Color to specify your colors there
is no need to. You will get the specified color no matter
what color decomposition state you choose to work in.
(And why would anyone NOT want to display all 16.7 million
colors simultaneously!? Don't listen to the Luddites who
want you to set yourself in PSUEDO_COLOR mode!)

You might want to browse the numerous articles on using
color in IDL on my web page. In particular, you want to
read this one:

http://www.dfanning.com/color_tips/colors24.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dilating at image boundaries
Next Topic: Re: Error in Object

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

Current Time: Thu Oct 09 19:58:19 PDT 2025

Total time taken to generate the page: 0.00202 seconds