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

Home » Public Forums » archive » Re: Continuous colorbar
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: Continuous colorbar [message #71543 is a reply to message #71542] Mon, 28 June 2010 08:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
zhangyehui writes:

> I want to draw a contour map of correlation coefficients with
> continuous color. As R varies between [-1, 1], I'd like those are
> close to 0 shown in white color and those are close to 1(-1) with
> darker colors. I usually use loadct colorbars. There are 41 colorbars.
> But I can't find a colorbar with a white color in the middle. So I
> just wondered if there is anyway I can do that. Thanks in advance.

You can download a Brewer color table file here:

http://www.dfanning.com/programs/fsc_brewer.tbl

Once the file is located somewhere on your IDL path,
you can use it with all of the color tools available
in the Coyote Library. And, in particular, with CTLOAD
or XCOLORS by setting the /BREWER keyword. There are
about 12 divergent color tables amoung the 28 offered.
I use them all the time for exactly this purpose.

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

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: This procedure is resulting in errors...
Next Topic: triangels may be don't show the right value

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

Current Time: Thu Oct 09 23:05:56 PDT 2025

Total time taken to generate the page: 0.79891 seconds