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 #81419 is a reply to message #81415] Fri, 14 September 2012 08:13 Go to previous messageGo to previous message
Rosie is currently offline  Rosie
Messages: 27
Registered: September 2012
Junior Member
On Friday, September 14, 2012 2:58:11 PM UTC+1, David Fanning wrote:
> Rosie,
>
>
>
> You may prefer this color bar:
>
>
>
> nl=19; nl,number of level
>
> level=findgen(nl)*.5-4.5
>
> names = String(level, Format='(f0.1)')
>
> names[[0,18]]=" "
>
> names[Indgen(9)*2+1] = " "
>
> names[0] = '<-4.5'
>
> names[18] = '>4.5'
>
> cgerase
>
> cgLoadCT, 25, NColors=20, Bottom=1, /Brewer
>
> cgColorBar, NColors=18, Bottom=2, Division=18, $
>
> Range=[Min(level),Max(level)], TickNames=names, $
>
> TickLen=1.0, OOB_Low=1, OOB_High=20
>
>
>
> 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.")

Dear David,

Such a nice colour table !!
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 17:39:12 PDT 2025

Total time taken to generate the page: 0.00448 seconds