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

Home » Public Forums » archive » How to create a colour table in IDL?
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: How to create a colour table in IDL? [message #90004 is a reply to message #90003] Wed, 14 January 2015 10:09 Go to previous messageGo to previous message
atmospheric physics is currently offline  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.")
[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
Previous Topic: When with the Linux version switch from Motif's to a modern toolkit?
Next Topic: Colors for the Color Blind

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

Current Time: Wed Oct 08 15:57:55 PDT 2025

Total time taken to generate the page: 0.00388 seconds