<div dir="ltr">Hi Christine,<div>Paneling plots of different sizes and getting them to look exactly how you want can take some trial and error. I would panel the three maps separately and set gsnPanelDebug = True in your panel resource list, not advance the frame, then use the settings output from gsnPanelDebug to set whichever of the vpWidthF/vpHeightF/vpXF/vpYF settings you want to use. So the procedure would look loosely like this:</div><div><br></div><div>res = True</div><div>res@gsnDraw = False</div><div>res@gsnFrame = False</div><div>...</div><div>plot = new(4,graphic)</div><div>plot(0) = gsn_csm_contour_map(wks...</div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">; do not create plot(1) to leave a space in the upper right hand corner of the plot</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">plot(2) = gsn_csm_contour_map(wks...</span><br></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">plot(3) = gsn_csm_contour_map(wks...</span><br></span></div><div><br></div><div>panres = True   </div><div>panres@gsnFrame = False</div><div>panres@gsnPanelDebug = True</div><div>gsn_panel(wks,plot,(/2,2/),panres)</div><div>drawNDCGrid(wks)    ; draws the NDC grid on the plot to help place xy plot. Can remove when not needed</div><div><br></div><div>; Look at the output from gsnPanelDebug (see: <a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex19">http://www.ncl.ucar.edu/Applications/panel.shtml#ex19</a>) and set the vp resources below</div><div>xyres = True   ; zonal mean resource list, will pass into gsn_csm_xy</div><div>xyres@gsnFrame = False</div><div>xyres@vpXF = 0.6   ; set these based on the dimensions from gsnPanelDebug for plot(0).</div><div>xyres@vpYF = 0.9   </div><div>xyres@vpWidthF = 0.2   </div><div>xyres@vpHeightF = 0.4</div><div>...</div><div>xyplot = gsn_csm_xy(wks,.....</div><div>frame(wks)</div><div><br></div><div>As stated earlier, this will take some trial and error to get the vp settings exactly how you want them. Please respond to ncl-talk with any further queries. Good luck!</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 30, 2018 at 3:10 AM christine Delire <<a href="mailto:cdelire@gmail.com">cdelire@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am trying to build a panel with 3 maps and a zonal mean of lets say the upper left map. <br>The 1st map on the top left would be observations.<br>On the second row, I'd want a model simulation on the left and simulated minus observed on the right.<br></div><div>This I can do. But I'd like to add a zonal mean on the top right that has the zonal averages of the observed and simulated fields.<br><br></div><div>I tried <strong></strong><strong>gsn_csm_attach_zonal_means</strong>,<strong> </strong>and <b>overlay</b> to get several zonal means on the same plot but map+zonal means had the same size as the lower map. So the upper map  is smaller than the lower one and I don't want that.<br><br></div><div>I tried to calculate the zonal mean and plot them on the upper right panel with<b> gsn_csm_xy </b>using panel_14.ncl as example but couldn't get to place the xy plot correctly. <br><br></div><div>Finally, I also tried to follow panel_20.ncl but all my plots appear exactly at the same place on top of each other despite carefully defining the vpXF etc. the vp ressources don't seem to work at all.<br><br></div><div>I am using version 6.4.0<br></div><div><br></div><div>Any hint ?<br></div><div><br><br><b></b></div><div>-- <br><div class="m_-5212429736370110722gmail_signature">Christine Delire,<br><a href="mailto:cdelire@gmail.com" target="_blank">cdelire@gmail.com</a><br>Toulouse</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" 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>