Re: How to create a colour table in IDL? [message #90004 is a reply to message #90003] |
Wed, 14 January 2015 10:09   |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello David,
There is no change in the colorbar in both the following cases:
cgLoadCT, 22, /Brewer
(or)
cgLoadCT, 22, /Brewer, ncolors=6
I wanted to have 6 color bands from /Brewer colour table similar to the one shown in the link indicted earlier. I don't understand where I am going wrong?
Thanks in advance,
Madhavan
On Wednesday, January 14, 2015 at 6:39:22 PM UTC+1, David Fanning wrote:
> Madhavan Bomidi writes:
>
>> I have seen online links but I could not understand how to extract specific colours from /BREWER colour table similar to the colorbar shown at http://latticeextra.r-forge.r-project.org/#horizonplot
>>
>> I require to extract 6 colours from /BREWER colour table to represent the contrast in the figure. How can I know the colour indices or colour names in /BREWER colour table? May be my terminology is wrong!!!
>>
>> Can you please suggest me how I can do this?
>
> cgLoadCT, 22, /Brewer, NCOLORS=6
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|