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

Home » Public Forums » archive » Re: Colorbar with fixed level and color
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: Colorbar with fixed level and color [message #81426 is a reply to message #81424] Fri, 14 September 2012 05:53 Go to previous messageGo to previous message
Rosie is currently offline  Rosie
Messages: 27
Registered: September 2012
Junior Member
On Friday, September 14, 2012 1:13:04 PM UTC+1, David Fanning wrote:
> Rosie writes:
>
>
>
>>
>
>> Hello,
>
>>
>
>> I have created contour plot with following color and levels
>
>>
>
>> loadct,39
>
>> nl=21; nl,number of level
>
>> color=(findgen(nl+1)*10)+50
>
>> level=findgen(nl)*.5-5
>
>>
>
>> Would anyone kindly tell how to plot colorbar with this specification.
>
>
>
> Well, those specifications don't make too much sense, since
>
> there is no "color" at index 260. But, what I *think* you
>
> are trying to do is something like this:
>
>
>
> cgLoadCT, 39, Clip=[50,254], NColors=20, Bottom=1
>
> cgColorBar, NColors=20, Bottom=1, /Discrete, $
>
> Range=[Min(level),Max(level)], Charsize=0.75
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thanks a lot, David. It worked !
Regards,
[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
Previous Topic: Re: Widget Hyperlink
Next Topic: IDL workbench & xquartz

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

Current Time: Wed Oct 08 19:46:04 PDT 2025

Total time taken to generate the page: 0.00458 seconds