[ncl-talk] YRLabels with gsn_csm_contour

Mary Haley haley at ucar.edu
Wed Nov 11 14:59:25 MST 2015


Oh, sorry, yes, you need to set tmYUseLeft to False if you are labeling the
right axis different than the left axis, because by default NCL wants to
use the same labels on both sides.

--M


On Wed, Nov 11, 2015 at 1:50 PM, Matthew Fearon <Matthew.Fearon at dri.edu>
wrote:

> Thank you, Mary. In addition to YRLabelsOn = True, I need to set YUseLeft
> = False. And now I've got it.
>
> Matt
>
> ------------------------------
> *From:* Mary Haley [haley at ucar.edu]
> *Sent:* Wednesday, November 11, 2015 7:40 AM
> *To:* Matthew Fearon
> *Cc:* ncl-talk at ucar.edu
> *Subject:* Re: [ncl-talk] YRLabels with gsn_csm_contour
>
> Try adding:
>
> res at tmYRLabelsOn         = True
>
> The tmYROn just controls the tickmarks.  The above resource controls
> labels.
>
> --Mary
>
>
>
> On Tue, Nov 10, 2015 at 11:13 PM, Matthew Fearon <Matthew.Fearon at dri.edu>
> wrote:
>
>> Dear NCL users
>>
>> I'm trying to put Y labels on the right hand side on my contour plot.
>> Below are my settings tried. These work fine with YL "left hand side", but
>> labels fail to appear when tried with YR the "right hand side". Tickmarks
>> appear but not labels. Is there some wihitespace setting I need, and labels
>> are just being cut off?
>>
>>   res at tmYLOn               = False
>>
>>   res at tmYROn               = True
>>
>>   res at tmYRMode             = "Explicit"
>>
>>   res at tmYRValues           = yvalues
>>
>>   res at tmYRLabels           = ylabels
>>
>>   res at tmYRLabelFontHeightF = 0.015
>>
>>
>>   plot = gsn_csm_contour(xwks, var, res)
>>
>>
>>
>> thanks,
>>
>> Matt
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151111/d47099b6/attachment.html 


More information about the ncl-talk mailing list