<div dir="ltr">Hi Juris,<div>A good debugging process to use on this situation is to simplify your resource list, identify the source of the issue, and then add resources back in. In this case, I would start by simplifying your panel resource list, specifically your res_bar list. I would start with removing the following resources:</div><div><span style="font-size:12.8px">res_bar@pmLabelBarHeightF = 0.20  </span><br></div><div><span style="font-size:12.8px">res_bar@gsnPanelScalePlotIndex = 2</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The first of those resources is setting the label bar height to be 20% of the height of the page which is likely too big. (panel_33 uses vertical label bars thus a setting of .20 would be appropriate in that case.) The second resource is telling NCL to use the size of the 2nd plot as the proper size, but the resource (like-ncl) is zero-based and you only have plot_bar(0) and plot_bar(1).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Finally, I would also alter this resource setting:</span></div><div><span style="font-size:12.8px">res_contour@gsnPanelBottom = 0.25</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">to something like this:</span><br></div><div><span style="font-size:12.8px">res_contour@gsnPanelBottom = 0.35</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">as I believe the label bar does not count as part of the panel boundary, and thus drops below your original setting of 0.25. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Hope that helps. If not, please respond back to the ncl-talk email list.</span></div><div><span style="font-size:12.8px">Adam</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 11:40 AM, Juris Almonte <span dir="ltr">&lt;<a href="mailto:Juris.Almonte@umanitoba.ca" target="_blank">Juris.Almonte@umanitoba.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi NCL users,
<div><br>
</div>
<div>I would like the plots within my panel to be of the same size, at least in the x axis, as they have the same dimensions on the x axis and differ on the y axis. </div>
<div><br>
</div>
<div>Here is the part of the script which panelled the plots.  </div>
<div><br>
</div>
<div>
<div>res_contour = True</div>
<div>res_contour@gsnPanelBottom = 0.25</div>
<div>res_contour@gsnFrame = False</div>
<div>res_contour@gsnDraw = False</div>
<div>res_contour@gsnPanelLabelBar = True</div>
<div><br>
</div>
<div>panelid1 = gsn_panel_return(wks,plot_<wbr>contour,(/3,2/),res_contour)</div>
<div><br>
</div>
<div>;---Calculate location for top of difference plots</div>
<div>bb     = NhlGetBB(panelid1)</div>
<div>bottom = min(bb(:,1))</div>
<div>top    = max(bb(:,0))</div>
<div>height = (top-bottom)/3.     ; Height of one row</div>
<div>    </div>
<div>;---Panel the diff plots at the bottom</div>
<div>res_bar = True</div>
<div>res_bar@gsnPanelTop       = bottom-0.01    ; lower 1/4 plus some white space</div>
<div>;res_bar@gsnPanelBottom    = res_bar@gsnPanelTop - height</div>
<div>res_bar@pmLabelBarHeightF = 0.20  </div>
<div>res_bar@gsnFrame = False</div>
<div>res_bar@gsnDraw = False</div>
<div>res_bar@gsnPanelScalePlotIndex = 2</div>
<div>panelid2 = gsn_panel_return(wks,plot_bar,<wbr>(/1,2/),res_bar)</div>
<div><br>
</div>
<div>maximize_output(wks,True)</div>
<div><br>
</div>
</div>
<div>I used example panel_33.ncl for reference, using gsn_panel_return.  </div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div><br>
</div>
<div>Juris</div>
<div>M.Sc. student</div>
<div>University of Manitoba<img id="m_-779972529699491793386C1B6B9-2AD9-4665-A336-53E31CCDB106" height="464" width="464" src="cid:E84262F2-FD53-466C-BED9-AC6DD61CC36B@wifi.ad.umanitoba.ca"></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>