Re: label bar min/max

From: Paula Doubrawa Moreira <pmoreira_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 11 2011 - 14:19:25 MDT

I think a more direct question is:

is there a way of setting not the last contour value, but the absolute last
value represented in the last contour?

e.g. by choosing 42, make the last contour end in 42 and not begin in 42.

On Mon, Jul 11, 2011 at 12:06 PM, Paula Doubrawa Moreira <
pmoreira@alaska.edu> wrote:

> Thanks, Dennis.
>
> When I set *res@cnLabelBarEndStyle = "IncludeMinMaxLabels" *then it
> creates the labels automatically and instead of 0 and 42 I get 0 and 41.66.
> Can the last label be the same as *cnMaxLevelValF, *without having to set
> explicit levels?
>
> I've been playing with these resources, but I can't seem to get the contour
> limits right without messing up the color assignment. I can set
>
> res@cnMinLevelValF = 0.
> res@cnMaxLevelValF = 42.
> res@cnLevelSpacingF = 2.
> res@cnLabelBarEndStyle = "ExcludeOuterBoxes"
>
> which is exactly what I want, but then the "greater or equal to 0" values
> are not white anymore, and are instead colored (bad!) because the white is
> then attributed to values less than 0, which are not even in the data range.
>
> Thanks!
>
> On Mon, Jul 11, 2011 at 11:34 AM, Dennis Shea <shea@ucar.edu> wrote:
>
>> See: cnLabelBarEndStyle resources
>>
>> See: http://www.ncl.ucar.edu/**Applications/labelbar.shtml<http://www.ncl.ucar.edu/Applications/labelbar.shtml>
>>
>> See examples 4, 10, 12
>>
>> Good Luck
>>
>>
>> On 7/11/11 1:16 PM, Paula Doubrawa Moreira wrote:
>>
>>> hi all -
>>>
>>> I am making a contour plot and I want the min and max values to be 0 and
>>> 42.
>>>
>>> If using *ManualLevels* as selection mode and setting those values for
>>> min and max, I end up with a plot with limits *-2* and *44 *(instead of
>>> 0 and 42). Why does this happen? Can I make the cnMaxLevelValF and
>>> cnMinLevelValF correspond to the exact minimum and max values?
>>>
>>> Therefore, to fix that I am having to set the following resources:
>>> res@cnLevelSelectionMode = "ManualLevels"
>>> res@cnMinLevelValF= 2.
>>> res@cnMaxLevelValF= 40.
>>> res@cnLevelSpacingF= 2.
>>>
>>> However, it's not showing the first and last labels (namely 0 and 42)
>>> which is what I want in the first place. Any hints?!
>>>
>>> Thanks,
>>> --
>>> *Paula Doubrawa Moreira*/
>>> /Graduate Student - Research Assistant
>>> International Arctic Research Center
>>> University of Alaska Fairbanks
>>>
>>>
>>> ______________________________**_________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/**mailman/listinfo/ncl-talk<http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>>>
>>
>
>
> --
> *Paula Doubrawa Moreira**
> *Graduate Student - Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
>

-- 
*Paula Doubrawa Moreira**
*Graduate Student - Research Assistant
International Arctic Research Center
University of Alaska Fairbanks

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 11 14:19:34 2011

This archive was generated by hypermail 2.1.8 : Tue Jul 12 2011 - 15:03:53 MDT