Re: Colorbar with fixed level and color [message #84204 is a reply to message #81409] |
Mon, 06 May 2013 09:07  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
On Monday, September 17, 2012 1:37:34 PM UTC+1, David Fanning wrote:
> Rosie writes:
>
>
>
>> Though it ran perfectly alright in unix, but in windows
>
>> it shows: 'attempt to call undefined procedure/function
>
>> cgLoadct'. However, in windows when I put Loadct, it
>
>> accepts the command. Do you think I should reinstall IDL?
>
>
>
> No, I think you should download the most recent Coyote
>
> Library and somehow get it on your IDL path. :-)
>
>
>
> 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,
It is working perfect now. Here I have few queries:
1. To match color of zero level in contour to that with colour bar, I used following commands for my plot and it is working. But colours shift in blue direction in one step.I tried with 'bottom'=2 or =1 in both cases for colourbar and table, but it is not matching together.
nl=13
level=(findgen(nl)*.5-3)
colour=(findgen(nl+1))
cgerase
cgLoadCT, 24, NColors=14, Bottom=2, /Brewer,/reverse
cgColorBar,NColors=14, bottom=1, Division=14
2. Can I simply make white on both sides of zero contour?
3. The colour you specified are really nice. But can I change those colours a bit, say for both blue or red can they be little lighter? or say can they be purple and orange?
Thanks and regards,
|
|
|