Re: Colorbar with fixed level and color [message #81415 is a reply to message #81414] |
Sun, 16 September 2012 05:08   |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
On Friday, September 14, 2012 4:13:13 PM UTC+1, Rosie wrote:
> 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,
Dear David,
1.It is working in unix, though cgerase or other cg command is not working in windows environment. Also Brewer command seems not working in windows.
2.If I want to specify colorbar at bottom of contour plot, then I need to put position command on contour command as well as on colorbar command?
3.I want to draw smooth contouring of z1. Shall I put it as
z1=smooth(z1,2) and then contour,z1?
4.I want to thicken the zero line.
5. For showing significant test, I put c_orient=45. If I only want to see dot instead of hatching, can I do that?
Regards,
Rosie
|
|
|