<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Laura,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Instead of using the precision resource, I would suggest using the tmYLFormat resource. The documentation for this is a little scary, but I use example tm_8.ncl on the tickmark page to help me:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8">http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">I think maybe all you need is:</div><div class="gmail_default"><br></div><div class="gmail_default">res@tmYLFormat = "f"</div><div class="gmail_default"><br></div><div class="gmail_default">Although this removes the zero before the decimal point too. You should look at this example and see if any other settings would work for you.</div><div class="gmail_default"><br></div><div class="gmail_default">As for offsetting the data, I would need to see what your X array looks like in order to understand how the data is being plotted. Does each line have its own X values, or are you using gsn_csm_y to do the plotting?</div><div class="gmail_default"><br></div><div class="gmail_default">In order to get the data offsetted in the way you want, you need to associate X values with each of the curves. I've attached a simple example of this.</div><div class="gmail_default"><br></div><div class="gmail_default">Let ncl-talk know if this is not what you were asking.</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 27, 2018 at 2:23 PM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I am confused about tickmarks..... Here are my two questions (see<br>
attached plot).<br>
<br>
<br>
1. For the left axis, when I do not set res@tmYLPrecision, when the<br>
labels of the Y axis are 0.00, 0.20, 0.30 instead of 0.0, 0.2, 0.3,<br>
etc... When I set<br>
<br>
res@tmYLPrecision           = 1<br>
<br>
then I get the warning<br>
warning:<wbr>AutoComputeMajorTickMarks: The precision specified is smaller<br>
than the precision needed tick mark labels may not be correct<br>
<br>
but I do get the right labels for the Y axis. Not sure what to do<br>
about the warning?<br>
<br>
<br>
2. For the GF, MSK, and NTIED lines, the data should be offset by 30<br>
minutes, and start in the middle between the major tick mark "00UTC"<br>
and the first minor tick marks. Is there a function that will offset<br>
the data relative to the tickmarks?<br>
<br>
<br>
Any suggestions? I looked around the "tm" examples but did not find<br>
what I needed.<br>
<br>
Thanks,<br>
Laura<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: 303-497-1628<br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
</font></span><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>