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 #81428 is a reply to message #81426] Fri, 14 September 2012 05:12 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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:43:09 PDT 2025

Total time taken to generate the page: 0.00444 seconds