[ncl-talk] Y-axis labels in transect script

Lyndz olagueralyndonmark429 at gmail.com
Thu Jan 16 06:04:29 MST 2020


Hi rashed,

Thank you so much for this!

Sincerely,

Lyndz

Sent from my iPhone

> On 16 Jan 2020, at 8:57 PM, Rashed Mahmood <rashidcomsis at gmail.com> wrote:
> 
> Hi Lyndz,
> Use the following instead of the two lines you mentioned in your email.
> res at tmYLMode   = "Explicit"  
> res at tmYLValues = (/875,825,775,725,675,625,575,525,475,425,375,325,275,225,175,125,70,50,30,20,10/)
> res at tmYLLabels = ""+(/875,825,775,725,675,625,575,525,475,425,375,325,275,225,175,125,70,50,30,20,10/)
> 
> Note the difference in what you were specifying the these lines...The "tmYBMode" and "tmYBLabels" resources does not exist. Pay attention to "tmYL", YL means Y Left axis.
> 
> 
> Cheers,
> Rashed
> 
>> On Thu, Jan 16, 2020 at 4:36 AM Lyndz via ncl-talk <ncl-talk at ucar.edu> wrote:
>> Dear NCL-experts,
>> 
>> Problem:
>> 
>> I am using the transect script provided in the NCL webpage.
>> I cannot explicitly change the Y-axis labels.
>> 
>> I want to label y-axis with the following values:
>> 
>> res at tmXBMode            = "Explicit"  
>> res at tmYBLabels=(/875,825,775,725,675,625,575,525,475,425,375,325,275,225,175,125,70,50,30,20,10/)
>> 
>> This gives the following warning:
>> 
>> warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for Y axis failed: consider adjusting trYTensionF value
>> warning:IrTransInitialize: error creating spline approximation for trYCoordPoints; defaulting to linear
>> warning:tmYBMode is not a valid resource in trans_contour at this time
>> warning:tmYBLabels is not a valid resource in trans_contour at this time
>> warning:tmYBMode is not a valid resource in trans_contour at this time
>> warning:tmYBLabels is not a valid resource in trans_contour at this time
>> 
>> 
>> Attached is the script that I am using.
>> 
>> I'll appreciate any help you can provide on how I can do this correctly.
>> 
>> Sincerely,
>> Lyndz
>> _______________________________________________
>> 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/20200116/ee8b0894/attachment.html>


More information about the ncl-talk mailing list