<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As Adam said, gsn_panel is not going to change the shape of your plots simply to make them the same size. It will make them *smaller* so they can fit on one page, but it will maintain the aspect ratio of the width to the height.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">NCL will never alter your plots to change the aspect ratio, unless you explicitly tell it to, via vpWidthF/vpHeightF resources or, in the cases of maps, by additionally setting mpShapeMode to "FreeAspect".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is not bug! Skewing the aspect ratio of your plots can be a big deal scientifically, depending on what kind of data you are looking at, so NCL requires that you do this explicitly.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">gsn_panel is meant to be used on plots that are very close to the same size. If you give it plots of different widths and heights, it doesn't know anything about this, and simply scales down the size of the other plots based on the size it retrieves from the first plot, but without changing the aspect ratio. Again, this is not a bug, it's simply how gsn_panel works. It will line up the top left corners of all the plots for each row.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Adam's solution is the only way you can get plots with different lat/lon ranges to be the same size. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you don't want to skew the aspect ratio of your plots, then one way to make them more visible is to use a different paneling configuration. You have 8 plots and are telling it to panel 6 of them in the first row, and the rest in the second row. This doesn't give you much room.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I would suggest using a 3 x 3 configuration, which uses three rows, and hence your plots end up larger:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> Panelres = True<br></div><div class="gmail_default"><div class="gmail_default" style="font-size:small"> Panelres@gsnPanelScalePlotIndex = 7<br></div><div class="gmail_default" style="font-size:small"> gsn_panel(Wks,Plot,(/3,3/),Panelres)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Since your last plot (plot index 7) is the largest one, I set the special gsnPanelScalePlotIndex to this plot index, so that the scaling will be based on this plot, and not the first one. This will keep the plots from running into each other.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you don't like the layout of the plots, you can tweak the locations of each plot using the special gsnPanelXF and gsnPanelYF resources. See panel_19.ncl and maponly_23.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#19">http://www.ncl.ucar.edu/Applications/panel.shtml#19</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/maponly.shtml#ex23">http://www.ncl.ucar.edu/Applications/maponly.shtml#ex23</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 8:05 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"><span id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33603">thanks Adam for the clues. </span></div><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"><span id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33601">It worked well. </span></div><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"><span id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33540">But I did not face any problem with gsn_panel earlier when the lat-lon were fixed. I did not use any resource to plot the figures of different sizes. so was it the problem with gsn_panel? </span></div><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"><span id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33801">Only in this case when my lat-lon are different, I faced issues with gsn_panel. </span></div><span class="HOEnZb"><font color="#888888"><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"><span><br></span></div><div id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33399" dir="ltr"> <br></div><div class="m_4076673535530258596signature" id="m_4076673535530258596yui_3_16_0_ym19_1_1481651049708_33375">Geeta.</div></font></span><div><div class="h5"> <div class="m_4076673535530258596qtdSeparateBR"><br><br></div><div class="m_4076673535530258596yahoo_quoted" style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, 13 December 2016 11:49 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br></font></div> <br><br> <div class="m_4076673535530258596y_msg_container"><div id="m_4076673535530258596yiv0304553994"><div><div dir="ltr">Hi Geeta,<div>NCL will not distort the map areas shown to make each paneled plot the same size unless you tell it to. To do this you can set the mpShapeMode/vpWidthF/vpHeightF resources as is shown in example #6 here:</div><div><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/viewport.shtml#ex6" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/viewport.shtml#<wbr>ex6</a><br clear="none"></div><div><br clear="none"></div><div>Note that that example bases the vpWidthF/vpHeightF settings for the second plot off of the first by drawing/advancing the frame (using gsn_panel) and then retrieving the width/height of the first plot. You do not need to do this. You can simply set vpWidthF/vpHeightF to whatever you want (and of course set mpShapeMode = "FreeAspect").</div><div><br clear="none"></div><div>Hope that helps. If you have any further questions please write to the ncl-talk email list.</div><div>Adam </div></div><div class="m_4076673535530258596yiv0304553994gmail_extra"><br clear="none"><div class="m_4076673535530258596yiv0304553994gmail_quote">On Tue, Dec 13, 2016 at 9:54 AM, Geeta Geeta <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_4076673535530258596yiv0304553994gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_4076673535530258596yiv0304553994yqt5511604888" id="m_4076673535530258596yiv0304553994yqt88955"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697">I am making a panel plot in which for each figure, I have different ranges of lat/lon. </div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697">I donot know why the plots are not of same size. </div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697"><br clear="none"></div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697"><br clear="none"></div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697"><br clear="none"></div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697"><br clear="none"></div><div dir="ltr" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_4697">thanks </div><span class="m_4076673535530258596yiv0304553994HOEnZb"><font color="#888888"></font></span><div></div><div id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_10159"> </div><div class="m_4076673535530258596yiv0304553994m_6276026837964927996signature" id="m_4076673535530258596yiv0304553994m_6276026837964927996yui_3_16_0_ym19_1_1481643070034_11761">Geeta.</div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="m_4076673535530258596yiv0304553994gmail_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 clear="none"></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br clear="none"></font></span></div></div><div><span><font color="#888888"><a rel="nofollow" shape="rect" href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a> </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br clear="none"></font></span><div><span><font color="#888888"><a rel="nofollow" shape="rect" 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></div></div><br><br></div> </div> </div> </div></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>