<div dir="ltr"><div class="gmail_default" style="font-size:small">My apologies, I misunderstood that you wanted to take off the ".0" for the "0.0" label.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I don't think you can mix and match tickmark formatting simply by setting tmXBLabelFormat. If you explicitly want "0" for "0.0", but "0.7" for ".7" then you will need to do something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">xaxis_values = (/0,0.2,0.4,0.6,0.8/) </div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">xaxis_labels = sprintf("%2.1f",xaxis_values)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">xaxis_labels(0) = "0" ; explictly change the first label</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div>
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace">res@tmXBMode = "Explicit"</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">res@tmXBValues = xaxis_values</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">res@tmXBLabels = xaxis_labels</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">--Mary</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-size:small"><br></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 17, 2016 at 8:53 AM, Lijun Diao <span dir="ltr"><<a href="mailto:ljdiao@gmail.com" target="_blank">ljdiao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Mary:<div><br></div><div>As the example shows, 0f still has 0.0 not 0 as I wanted. I already set the labels explicitly. I just wonder why for one array, it appears 0.0 while for the other 0. </div><div><br></div><div>thanks,</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 17, 2016 at 9:15 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">This is not a panel plot issue per se. When you create the individual plots is when you need to fix the labels the way you want them. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did you see example tm_8.ncl at:</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" target="_blank">http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">This shows the different formats you can use. I would try "0f".</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Jun 15, 2016 at 11:13 PM, Lijun Diao <span dir="ltr"><<a href="mailto:ljdiao@gmail.com" target="_blank">ljdiao@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Hi, all:</div>
<div> </div>
<div>I have a panel plot and try to set the number format of the y-axes . I
attached two axes from two subplots. For the left one, minimum value zero is
outputed as “0.0”, while for the right one “0”. I set them use the same
tmYLFormat = "@f". So my question is how can I set the starting number of the
first axis also to be “0”. By the way, I need “0.7” not “.7”</div>
<div> </div>
<div>thanks,</div>
<div> </div>
<div> </div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">-----------------------------------------------------------------------------<br>Lijun
Diao<br><a href="mailto:ldiao@uh.edu" target="_blank">ldiao@uh.edu</a><br>Research Assistant<br>Department of Earth &
Atmospheric Sciences<br>University of Houston<br>4800 Calhoun RD., Bldg.
S&R1-312<br>Houston, TX 77204-5007</div></div></div></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>