[ncl-talk] label strings

Yun Yue yunyue at huskers.unl.edu
Fri Dec 12 13:53:42 MST 2014


Hi Daivd and Maria,
Thank you. I set   
 res at cnLevelSelectionMode         = "ManualLevels"
   res at lbLabelAutoStride            = False
   res at lbLabelStride                = 50
;  res at cnLevelSpacingF              = 0.01 ;N
   res at lbLabelStrings               = (/"0.0","0.05","0.1","0.15"/)
There's no warning. Just the contour plot interval is too big and lebels are not at correct position (shown as attached).
Other suggestions?
I really appreciate that.
Yun


________________________________________
From: David Brown <dbrown at ucar.edu>
Sent: Friday, December 12, 2014 13:41
To: Yun Yue
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] label strings

Hi Yun,
Assuming you have set cnLevelSelecitonMode to "ManualLevels" as Maria
suggested, I think what will work for you is not to try to set
lbLabelStrings explicitly, but instead to manually set the label
stride:

res at lbLabelAutoStride = False ; not really necessary since a manual
stride overrides this resource.
res at lbLabelStride = 50     ; this should give 4 labels

 -dave


On Fri, Dec 12, 2014 at 12:18 PM, Maria Gehne - NOAA Affiliate
<maria.gehne at noaa.gov> wrote:
> Hi Yun,
>
> It's a little hard to tell what might be going on with the limited
> information you provided.
>
> Did you also set res at cnLevelSelectionMode = "ManualLevels" ? If you didn't
> you are probably getting warnings that the settings are being ignored.
>
> Maria
>
> On Fri, Dec 12, 2014 at 10:43 AM, Yun Yue <yunyue at huskers.unl.edu> wrote:
>>
>>
>> Hi NCL users,
>>
>> When I tried the following commands:
>>
>> res at cnMinLevelValF   = 0.0
>>
>> res at cnMaxLevelValF  = 0.15
>>
>> res at cnLevelSpacingF  = 0.001
>>
>> My contour plot looks very smooth but the numbers on label bar is 0,
>> 0.013, 0.026, I just want the numbers be like 0, 0.05,0.1. So I set
>> res at lbLabelStrings = (/"0.0","0.05","0.1","0.15"/).
>>
>> But It doesn't work.
>>
>> Anyone can tell me how to set this? Thank you very much.
>>
>> Yun
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _HMT at 8@T_}Y3V59U6KXSU)S.jpg
Type: image/jpeg
Size: 30792 bytes
Desc: _HMT at 8@T_}Y3V59U6KXSU)S.jpg
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141212/e8fdd2d0/attachment.jpg 


More information about the ncl-talk mailing list