<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">I'm going through some older emails that look like they don't have responses, and this is one of them.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The gsn_csm_pres_hgt function is actually two plots overlaid on top of each other. The base plot is a "LogLin" plot which allows us to have a log axis. The overlaid plot is the contour plot and it's the one that's setting all the tickmark stuff.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When you did a getvalues on plot, this is the LogLin plot and hence doesn't have the tickmark labels. If you call "print(plot)" you will see it has an attribute "contour" that looks something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"> contour :<span style="white-space:pre"> </span>h_lat_contour<span style="white-space:pre"> </span>contourPlotClass<span style="white-space:pre"> </span>11</div><div style="font-size:small"><br></div><div style="font-size:small">This is the thing you want to retrieve the labels from:</div><div style="font-size:small"><br></div><div style="font-size:small">getvalues plot@contour</div><div style="font-size:small"> "tmXBValues" : tmXBValues</div><div style="font-size:small">end getvalues</div><div style="font-size:small"><br>Did you get your labeling problem figured out?<br></div><div style="font-size:small"><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 2, 2018 at 9:41 AM, 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"><div dir="ltr">Hello:<div><br></div><div>Following the -email I sent yesterday regarding tickmarks, I simplified my ncl script to understand about the bottom tickmarks are labelled by default so that I can understand how to change them using tmXBValues and tmXBLabels. The simplified script is in
<span></span>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">/glade2/scratch2/laura/<wbr>MPASprojects.2018/<wbr>forPUBLICATION/TENDENCIES/<wbr>rect.cu_kain_fritsch_sca.<wbr>20151129-20160102 and the script is plot.ncl. Also see attached plot dtcup.kf.pdf.</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">I tried to retrieve the default values of tmXBValues with the lines:</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">
<span></span>
</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">res2@tmXBMode = "Automatic"</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot = gsn_csm_pres_hgt(wks,dtcup_<wbr>interp_kf,res2)</span></p>
<p class="m_7070229129112194191gmail-p2" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255);min-height:17px"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">getvalues plot</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_7070229129112194191gmail-Apple-converted-space"> </span>"tmXBValues" : tmXBValues</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">end getvalues</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">print(" ")</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">print(tmXBValues)</span></p>
<br><p></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Then I get:</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">
<span></span>
</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: tmXBValues</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Total Size: 16 bytes</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_7070229129112194191gmail-Apple-converted-space"> </span>4 values</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 1</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>[4]</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">Coordinates:<span class="m_7070229129112194191gmail-Apple-converted-space"> </span></span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span> 0</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>100</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">(2)<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>200</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">(3)<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>300</span></p>
<p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_7070229129112194191gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><span class="m_7070229129112194191gmail-Apple-converted-space"> </span></span></p>
<br><p></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_7070229129112194191gmail-s1" style="font-variant-ligatures:no-common-ligatures">which is super confusing to me since the plot shows at least 6 values for the major tickmarks and not just 4. Is it possible to actually set different XB labels with </span><span style="font-variant-ligatures:no-common-ligatures">gsn_csm_pres_hgt?</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">I would really appreciate some hints on how to do this.</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Many thanks,</span></p><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Laura</span></p><span class="HOEnZb"><font color="#888888"><p class="m_7070229129112194191gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><br></p><div><br></div>-- <br><div class="m_7070229129112194191gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM) </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><br></div></div></div>
</font></span></div></div>
<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>