[ncl-talk] label strings

Yun Yue yunyue at huskers.unl.edu
Fri Dec 12 14:20:50 MST 2014


David,
Thank you very much. Sorry I was too careless.
It works now.
Have a good day,
Yun

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

My suggestion was that you not set lbLabelStrings, and also assumes
that you set cnLevelSpacingF, cnMinLevelValF, and cnMaxLevelValF, as
you had in your original post (along with cnLevelSelectionMode to
"ManualLevels", of course).
 -dave



On Fri, Dec 12, 2014 at 1:53 PM, Yun Yue <yunyue at huskers.unl.edu> wrote:
> 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
>>


More information about the ncl-talk mailing list