<div dir="ltr">Hi Laura,<div>Could the right plot height label be getting pushed off the page? Try drawing the 2nd plot on its' own to see.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 1:18 PM Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hello:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><span style="font-size:small">I am drawing a longitude versus pressure panel plot using the procedure gsn_csm_pres_hgt </span>(see test.png). Between the left and the right panels, I do not want any labels but I want to restore the right labels including "Height (km)" for the right panel. I used the following:</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">nplots = 2</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">plots<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= new(nplots,graphic)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128);min-height:17px"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">diag = rhu_gf(nFGLevels|:,lon|:)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">;res@gsnLeftStringParallelPosF = -0.05</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftString = "a) GFu: RELATIVE HUMIDITY (-)"</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tiYAxisOn <span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYLOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYLBorderOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYROn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYRBorderOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYRLabelsOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= False</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot = gsn_csm_pres_hgt(wks,diag,res)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">getvalues plot@contour</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>"pmAnnoManagers" : am_ids</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">end getvalues</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">index = ind(NhlName(am_ids).eq."right_axis")</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">if(.not.ismissing(index)) then</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>NhlRemoveAnnotation(plot@contour,am_ids(index))</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">end if</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">plots(0) = plot</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">delete(index)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">delete(plot)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128);min-height:17px"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">diag = rhv_gf(nFGLevels|:,lon|:)</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">;res@gsnLeftStringParallelPosF = -0.05</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftString = "b) GFv: RELATIVE HUMIDITY (-)"</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tiYAxisOn <span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYLOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYLBorderOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYLLabelsOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= False</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYROn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYRBorderOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmYRLabelsOn<span class="gmail-m_-4585776306302875253gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-4585776306302875253gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-m_-4585776306302875253gmail-s1" style="font-variant-ligatures:no-common-ligatures">plots(1) = gsn_csm_pres_hgt(wks,diag,res)</span></p></div>
<div class="gmail_default" style="font-size:small"><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">Unfortunately that did not restore the labels and title of the right axis. I wonder if that has to do with using <span style="color:rgb(0,0,128);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures">NhlRemoveAnnotation set in </span>plots(0). Is there a way around this?</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small">Laura</div><div class="gmail_default" style="font-size:small"><br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4585776306302875253gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</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)">!-------------------------------------------------------------------------------------------------------------</font><br></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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>