<div dir="ltr">Hi Laura,<div><br></div><div>I've done something similar recently, here's a snippet of the code:</div><div>-----</div><div><div><font face="monospace, monospace"> retVal = gsn_histogram( io_wks, stormWaveData@allCrestLag, res )</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> midSignif = avg( retVal@NumInBins )</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> getvalues retVal</font></div><div><font face="monospace, monospace"> "trYMaxF" : trYMaxF</font></div><div><font face="monospace, monospace"> end getvalues</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> major = nice_mnmxintvl( 0, 100. * trYMaxF / midSignif, 6, True )</font></div><div><font face="monospace, monospace"> minor = nice_mnmxintvl( major(0), major(1), 30, True )</font></div><div><font face="monospace, monospace"> print( major + " " + minor )</font></div><div><font face="monospace, monospace"> yrLabels = cspan( major(0), major(1), major(2) )</font></div><div><font face="monospace, monospace"> yrMinor = cspan( major(0), major(1), minor(2) ) * midSignif / 100</font></div><div><font face="monospace, monospace"> yrValues = yrLabels * midSignif / 100</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> setvalues retVal</font></div><div><font face="monospace, monospace"> "tmYUseLeft" : False</font></div><div><font face="monospace, monospace"> "tmYRLabelsOn" : True</font></div><div><font face="monospace, monospace"> "tmYRMode" : "Explicit"</font></div><div><font face="monospace, monospace"> "tmYRValues" : yrValues</font></div><div><font face="monospace, monospace"> "tmYRLabels" : yrLabels</font></div><div><font face="monospace, monospace"> "tmYRMinorValues" : yrMinor</font></div><div><font face="monospace, monospace"> end setvalues</font></div></div><div>-----</div><div>cspan mentioned here is my alternative to fspan that lets you pick the interval. The code for cspan is here:</div><div><a href="https://k3.cicsnc.org/carl/carl-ncl-library/blob/master/lib.array.ncl">https://k3.cicsnc.org/carl/carl-ncl-library/blob/master/lib.array.ncl</a><br></div><div><br></div><div>Hope this helps!</div><div><br></div><div> Carl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 1:10 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>
I would like to change the labels of the major tick marks on the left<br>
and right axis of a histogram, but not sure how to do this.<br>
<br>
On the left y-axis, the frequency varies from 0.0x10^7 to 1.5x10^7. I<br>
would like the labels to vary between 0.0 and 1.5 and the title of the<br>
left y-axis be "FREQUENCY (x 10^7)" instead without changing the shape<br>
of the histogram, of course.<br>
<br>
On the right y-axis, I would like to change the title to simply<br>
'PERCENT" instead of "Percent (missing values not counted)" and only<br>
have major tick marks every 10 percent.<br>
<br>
Not sure how to proceed and would love some hints on what to do next.<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
<br>
--<br>
!-------------------------------------------------------------------------------------------------------------<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: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-------------------------------------------------------------------------------------------------------------<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br><table border="0" cellpadding="2" cellspacing="2" style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent"><tbody><tr><td align="center" height="71" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" width="96" height="93"></a> <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a> </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">Cooperative Institute for Climate and Satellites NC</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncdc.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA's National Climatic Data Center</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: +1 828 257 3140<br></span></span><a href="http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div></div>
</div>