Re: How to create a colour table in IDL? [message #90005 is a reply to message #90004] |
Wed, 14 January 2015 10:16   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Madhavan Bomidi writes:
> 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?
I think you probably are NOT reading the documentation. :-)
There is a HUGE difference. Type these commands:
cgLoadCT, 22, /Brewer
cIndex
Now, close cIndex and type these commands:
cgLoadCT, 0
cgLoadCT, 22, /Brewer, NColors=6
cIndex
Do you see the difference?
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.")
|
|
|