<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Grace,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">There's currently no resource for this, but one could easily modify the "gsn_csm_pres_hgt" function in $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl and make the change themselves.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It's a quick change, so I did this for you. I added a new resource called gsnPresHgtHeightLabel, because we already have a gsnPresHgtHeightLabelOn resource:</div><div class="gmail_default" style="font-size:small"><p class="gmail-p1">I created a new ticket for this (NCL-2603 for your reference). I will try to get this into NCL V6.4.1 or 6.5.0. </p></div><div class="gmail_default" style="font-size:small">Attached is a modified version of "gsn_csm_pres_hgt" and an example that uses this new resource.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You need to add the following load statement at the top of your script, after any other load statements you might have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./gsn_csm_pres_hgt_mod.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> res@gsnPresHgtHeightLabel = "My own height label"<br></div><div class="gmail_default" style="font-size:small"><p class="gmail-p1">As a side, we also have a ticket to allow users to add both a left and right Y axis label, so you are not just limited to the one "tiYAxisString". This ticket is NCL-136, which shows you how old the request is!<br></p><p class="gmail-p1">--Mary</p><p class="gmail-p1"><br></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 29, 2017 at 9:34 PM, grace <span dir="ltr"><<a href="mailto:313695096@qq.com" target="_blank">313695096@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi:</div><div> All,I have write a script according to the example 'vector_5.ncl'(gsn_csm_pres_<wbr>hgt_vector).</div><div> I am wondering how to change the Y AxisString,because the default title and unit pattern is 'pressure(mb)'&'height(km)'.<wbr>But I want to change it to<span style="line-height:1.5"> </span><span style="line-height:1.5">'pressure/mb'&'height/km',I am try to set '</span>res@tiYAxisString = "Pressure/mb"',but it can only change one of them ,I can not find any information in the example script. </div><div><img src="cid:D3884BC9@AFF89158.5F5B0559.jpg"></div><div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"> How can I slove the problem?</div></div><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>