<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi, Mary:</DIV>
<DIV> </DIV>
<DIV>That is exactly what I did. But for another array as (/0,0.7,1.4,
2.1,2,8/). I set <A href="mailto:“@f">“@f</A>” and then the labels appear as I
want automatically. The only difference between the two arrays is that the
maximum value for the first array (/0.0, 0.2,0.4,0.6,0.8/) is less than 1, while
the other larger than 1. </DIV>
<DIV> </DIV>
<DIV>thanks,</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=haley@ucar.edu
href="mailto:haley@ucar.edu">Mary Haley</A> </DIV>
<DIV><B>Sent:</B> Sunday, June 19, 2016 11:07 PM</DIV>
<DIV><B>To:</B> <A title=ljdiao@gmail.com href="mailto:ljdiao@gmail.com">Lijun
Diao</A> </DIV>
<DIV><B>Cc:</B> <A title=ncl-talk@ucar.edu
href="mailto:ncl-talk@ucar.edu">ncl-talk</A> </DIV>
<DIV><B>Subject:</B> Re: [ncl-talk] tmYLFormat deleting trailing zero for a
panel plot</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<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"> </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"> </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"> </DIV></DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV dir=ltr>Hi, Mary:
<DIV> </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> </DIV>
<DIV>thanks,</DIV></DIV>
<DIV class=HOEnZb>
<DIV class=h5>
<DIV class=gmail_extra>
<DIV> </DIV>
<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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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"> </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"> </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> </DIV>
<DIV class=gmail_default>This shows the different formats you can use.
I would try "0f".</DIV>
<DIV class=gmail_default> </DIV>
<DIV class=gmail_default>--Mary</DIV>
<DIV class=gmail_default> </DIV>
<DIV class=gmail_default style="FONT-SIZE: small"> </DIV></DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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>
<DIV> </DIV></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>
<DIV> </DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></BODY></HTML>