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

Home » Public Forums » archive » Re: PLOT and colors
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: PLOT and colors [message #51468] Fri, 24 November 2006 10:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jean H. writes:

> you can also use a function from RSI's tutorial:
> function rgb2idx, rgb
> return, rgb[0]+(rgb[1]*2L^8)+(rgb[2]*2L^16)
> end
>
> plot, [...], color = rgb2idx[0,0,255] for a nice blue..

Or, whatever color happens to be loaded in color index
255 if you happen to have DEVICE, DECOMPOSED=0 set at
the moment. :-)

If you want a nice blue, you are MUCH better off trying
something like this:

plot, findgen(11), color=fsc_color('sky blue')

Now THAT should give you a nice blue! :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: getting an IDLgrPlot drawn
Next Topic: IDL 6.3 Installation error code 1633

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

Current Time: Fri Oct 10 09:53:30 PDT 2025

Total time taken to generate the page: 0.32278 seconds