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

Home » Public Forums » archive » color table
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: Color table [message #58186 is a reply to message #8601] Sun, 20 January 2008 09:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
WRC2008@gmail.com writes:

> I would like to plot a contour line figure, filled with colors.
> Thereby, positive values should be red-shaded filled, negative blue-
> shaded filled, and white shade around the zero.
>
> Now, I have checked the color table in IDL, and none of them seems to
> have this configuration? If possible, I would like to define the
> colors myself in fixed intervals, like [-10,0] = light grey, [0] =
> white, [0,10] = darkgrey,.... [10,20] = light red, ....
>
> Hope somebody can help me with this!

I would do this:

IDL> CTLoad, 1, NCOLORS=128
IDL> CTLoad, 3, /REVERSE, NCOLORS=128, BOTTOM=128

You can find CTLOAD here:

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

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
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
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: Re: Plotting a compass
Next Topic: Using self reference in WHERE statement?

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

Current Time: Wed Oct 08 17:50:58 PDT 2025

Total time taken to generate the page: 0.00479 seconds