<div dir="ltr"><div><div><div><div>Hi Seyni​,<br></div>I just ran your script here using a NCEP Reanalysis I file I had and it worked fine. I had to set gsnDraw and gsnFrame = False for each of the two resource lists to avoid 3 frames being drawn, but even without those resources the script ran fine. I tested the script in NCL v6.3.0 and v6.2.1. <br><br></div>If you are running an older version of NCL I recommend you upgrade to 6.3.0. I&#39;ve attached the plot for reference.<br><br></div>If you have any further issues please respond to the ncl-talk email list. <br></div>Adam<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 29, 2015 at 2:39 PM, Salack Seyni <span dir="ltr">&lt;<a href="mailto:abutawakalt@gmail.com" target="_blank">abutawakalt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,255)">​Dear Folks,<br></div><div class="gmail_default" style="color:rgb(0,0,255)"> <br></div><div class="gmail_default" style="color:rgb(0,0,255)">I&#39;m having a hard time to attach two plots. Seperately they&#39;re fine but attaching then along the Y axis is giving an error message. Do anyone have an idea of what is missing here?<br><br>********The program is given below**********<br>u_latH1 = u_latH-&gt;uwnd(0,0:12,:,0)<br>h_u1 = h_u-&gt;uwnd(0,0:12,0,0)<br><br><br>u_latH1!0 = &quot;la&quot;<br>u_latH1!1 = &quot;lev&quot;<br>h_u1!0 = &quot;lev&quot;<br><br>wks   = gsn_open_wks(&quot;ps&quot;, &quot;dry_ensoonly_profile&quot; )           ; open workstation<br><br>;==============================================<br>; create first plot<br>;=============================================<br><br> res   = True                                     <br> res@tiMainString    = &quot;DtC [strg ENSO]&quot; ; title <br> res@cnLevelSpacingF = 5.0                        <br> res@gsnContourZeroLineThicknessF = 2.               <br> res@gsnContourNegLineDashPattern = 1           <br> res@lbLabelAutoStride    = True                 <br> res@cnLevelSelectionMode = &quot;ManualLevels&quot;       <br> res@cnMinLevelValF       = -25.                <br> res@cnMaxLevelValF       =  5.                 <br> res@cnLineLabelsOn       = True                <br> res@tmYRMode             = &quot;Automatic&quot;      <br>    <br> base_plot  = gsn_csm_pres_hgt(wks, u_latH1, res )   <br><br>;==============================================<br>; create second plot<br>;=============================================<br><br> xyres                   = True                       <br> xyres@tiMainString      = &quot;Absolute anomaly w.r.t  1981-2010&quot;             <br> xyres@trYReverse        = True                       ; reverse Y-axis<br> xyres@xyDashPatterns    = 15                         ; choose dash patterns<br> xyres@trXMinF         = -2<br> xyres@trXMaxF         = 2<br><br> sec_plot = gsn_csm_xy(wks,h_u1,h_u1&amp;lev,xyres)<br><pre>;==============================================
;  attach plots
;=============================================
</pre>  newplot = gsn_attach_plots(base_plot,(/sec_plot/),res,xyres)<br> draw(base_plot)<br> frame(wks)<br><br><br></div><div class="gmail_default" style="color:rgb(0,0,255)">*********The error message*************<br></div><div class="gmail_default" style="color:rgb(0,0,255)">Copyright (C) 1995-2013 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.2<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:NhlGetValues:Error retrieving tmXBLabelFontHeightF<br>fatal:[&quot;Execute.c&quot;:8128]:Execute: Error occurred at or near line 7338 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl<br><br>fatal:[&quot;Execute.c&quot;:8128]:Execute: Error occurred at or near line 63 in file uwnd_plot.ncl<br><br><br></div><div class="gmail_default" style="color:rgb(0,0,255)">​Thank you in advance.<br><br></div><div class="gmail_default" style="color:rgb(0,0,255)">best regards,<br><br></div><div class="gmail_default" style="color:rgb(0,0,255)">Seyni​</div><span class="HOEnZb"><font color="#888888"><br><div class="gmail_extra"><br clear="all"><br>-- <br><div><div dir="ltr"><div><div><div><div>---<br><span style="background-color:rgb(238,238,238)"><font size="2"><span style="font-family:arial,helvetica,sans-serif">Dr. Seyni Salack,<span><span><span><br>Karlsruhe Institute of Technology (KIT)<br>Campus Alpin - Institute of Meteorology and Climate Research (IMK-IFU)<br>Ballengasse 19a<br>82467 Garmisch-Partenkirchen, Germany</span></span></span> <br></span></font></span></div><span style="background-color:rgb(238,238,238)"><font size="2"><span style="font-family:arial,helvetica,sans-serif">Mobile: <a href="tel:%2B49-%280%29175-8411934" value="+491758411934" target="_blank">+49-(0)175-8411934</a> |</span></font><font size="2"><span style="font-family:arial,helvetica,sans-serif"> Landline: <a href="tel:%2B49-%280%298821-183246" value="+498821183246" target="_blank">+49-(0)8821-183246</a> |</span></font><font size="2"><span style="font-family:arial,helvetica,sans-serif"> Skype: sesawu<br></span></font></span></div></div></div><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span style="background-color:rgb(238,238,238)">Email: <a href="mailto:seyni.salack@kit.edu" target="_blank">seyni.salack@kit.edu</a> / <a href="mailto:abutawakalt@gmail.com" target="_blank">abutawakalt@gmail.com</a>, Twitter: @ssalack</span><br></span></font><div><div><div><div><div><div>---<br></div></div></div></div></div></div></div></div>
</div></font></span></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div 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>
</div>