[ncl-talk] y-axis with one decimal (e.g. 0.20 --> 0.2)
Adam Phillips
asphilli at ucar.edu
Mon Mar 12 17:01:56 MDT 2018
Hi Chang,
I believe this will work:
res_ts at tmYLFormat = "0 at 3;^sg"
Note: For future reference you can set the tickmarks any way that you want
by setting:
tmXBMode = "Explicit", tmXBValues and tmXBLabels appropriately. See the
bottom panel of example #2 here:
http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2
Adam
On Mon, Mar 12, 2018 at 4:36 PM, Xi Chang <xi.chang01 at gmail.com> wrote:
> Thanks, Adam
>
> After setting "f" it becomes ".2" instead of "0.2"
> Is there any a way to include the zero in front of the dot. Its a
> mandatory from the journal.
> Thank you
>
> Chang
>
> On Mon, Mar 12, 2018 at 5:32 PM, Adam Phillips <asphilli at ucar.edu> wrote:
>
>> Hi Chang,
>> See example #8 here:
>> http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8
>>
>> Try setting:
>> res_ts at tmYLFormat = "f"
>> Hope that helps!
>> Adam
>>
>> On Mon, Mar 12, 2018 at 4:28 PM, Xi Chang <xi.chang01 at gmail.com> wrote:
>>
>>> Dear NCL,
>>>
>>> How to force the Y axis with one decimal instead of two, e,g.. 0.20 -->
>>> 0.2
>>> I set the following resource but it did not work, I still get 0.20 in
>>> the Y axis.
>>>
>>> res_ts at tmYLFormat = "#f"
>>>
>>> Chang
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/ 303-497-1726 <(303)%20497-1726>
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180312/6a71452b/attachment.html>
More information about the ncl-talk
mailing list