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

Home » Public Forums » archive » Adding extra white in middle of colour bar
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: Adding extra white in middle of colour bar [message #85608 is a reply to message #85607] Wed, 21 August 2013 07:04 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ljs15@fsmail.net writes:

> That's the method I originally used, but that means the white colour is only being given to the middle contour range.
>
> What I want (for example) is eight contours -10,-9,...,-2 to be shades of blue, and eight contours 2,3,...,10 to be shades of red, and the contours between -2 and +2 to be white.
>
> Not sure if this is possible without having to manually make a colour table and load it with tvlct.

If the right color table doesn't exist, you have to create it. No
question about that. :-)

cgLoadCT, 22, /Brewer, /Reverse, NColors=21
TVLCT, cgColor(Replicate('white',3), /Triple), 9
cgColorbar, NColors=21, Range=[-10,10], XTicks=2, XMinor=0

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
Previous Topic: Re: spawn not working
Next Topic: Navigating AVIRIS Images

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

Current Time: Sat Oct 11 08:50:28 PDT 2025

Total time taken to generate the page: 0.88100 seconds