<div dir="ltr">Hi Tabish,<div>I do not see anything in your code; my guess is that there is a weird resource conflict (or bug) that is resulting in too much space being placed between the 2 rows of plots. You can get around this though by specifying the placements of each panel by utilizing the information returned from gsnPanelDebug. See example 19 here:</div><div><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex19" target="_blank">http://www.ncl.ucar.edu/Applications/panel.shtml#ex19</a><br></div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 14, 2020 at 11:39 AM Tabish Ansari via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@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-family:"trebuchet ms",sans-serif">Hi</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I'm paneling eight wrf contour maps into 2 rows and 4 columns, and using gsnPanelYWhiteSpacePercent = 0. Still, there's a lot of white space between the two rows which I need to remove. Please see the attached plot.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Here's the relevant part of my script:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><i><br></i></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><i>  b = addfile("/rasher/tabish/control-run-so4-ECMWF/<a href="http://wrfout_d03_2014-10-24_010000.nc" target="_blank">wrfout_d03_2014-10-24_010000.nc</a>","r")           ; Open a file<br>  wks = gsn_open_wks("pdf","episode-maps")         ; Create a plot workstation<br>  gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")<br>  opts = True                                  ; Set some Basic Plot options<br>  opts@InitTime = False                        ; Do not plot time or footers<br>  opts@Footer = False<br><br>  res = opts                                   ; Use basic options for this field<br>  res@cnFillOn = True                          ; Create a color fill plot<br>  res@cnLevelSelectionMode = "ManualLevels"   ; set levels manually<br>  res@ContourParameters = (/ 25, 325, 25 /) ; Set the levels<br>  res@gsnFrame        = False                    ; don't advance frame yet<br>  res@gsnDraw         = False                    ; don't draw plot<br>  res@lbLabelBarOn = False<br>  res@tiMainOn = False<br>  res@tiXAxisOn = False<br>  contour_BASELINE_24 = wrf_contour(a0_24,wks,BASELINE_24,res)<br>  contour_A_24 = wrf_contour(a0_24,wks,A_24,res)<br>  contour_B_24 = wrf_contour(a0_24,wks,B_24,res)<br>  contour_C_24 = wrf_contour(a0_24,wks,C_24,res)<br>  contour_BASELINE_30 = wrf_contour(a0_30,wks,BASELINE_30,res)<br>  contour_A_30 = wrf_contour(a0_30,wks,A_30,res)<br>  contour_B_30 = wrf_contour(a0_30,wks,B_30,res)<br>  contour_C_30 = wrf_contour(a0_30,wks,C_30,res)<br><br>  pltres = True                                ; Set plot options<br>  pltres@NoTitles = False<br>  pltres@CommonTitle  = False<br>  pltres@NoHeaderFooter = True<br>  pltres@PanelPlot = True<br>  mpres = True                                 ; Set map options<br><br>  mpres@mpOutlineBoundarySets       = "AllBoundaries"   ; turn on country boundaries<br>  mpres@mpGeophysicalLineColor      = "Black"       ; color of cont. outlines<br>  mpres@mpNationalLineColor      = "Black"       ; color of cont. outlines<br>  mpres@mpProvincialLineColor      = "Black"       ; color of cont. outlines<br>  mpres@mpGeophysicalLineThicknessF = 1.5          ; thickness of outlines<br>  mpres@mpNationalLineThicknessF = 1.5          ; thickness of outlines<br>  mpres@mpProvincialLineThicknessF = 1.5          ; thickness of outlines<br>  mpres@mpDataBaseVersion = "MediumRes"            ; choose higher resolution<br>  mpres@mpDataSetName = "Earth..4"                 ; choose most recent boundaries</i></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><i><br></i></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><i>; MAKE PLOTS<br>  mpres@tmXTOn = True<br>  mpres@tmYROn = True<br>  mpres@tmXBMajorOutwardLengthF = 0.0               ; draw tickmarks inward<br>  mpres@tmXBMinorOutwardLengthF = 0.0               ; draw minor ticks inward<br>  mpres@tmYLMajorOutwardLengthF = 0.0               ; draw tickmarks inward<br>  mpres@tmYLMinorOutwardLengthF = 0.0               ; draw minor ticks inward<br>  mpres@tmXTMajorOutwardLengthF = 0.0               ; draw tickmarks inward<br>  mpres@tmXTMinorOutwardLengthF = 0.0               ; draw minor ticks inward<br>  mpres@tmYRMajorOutwardLengthF = 0.0               ; draw tickmarks inward<br>  mpres@tmYRMinorOutwardLengthF = 0.0               ; draw minor ticks inward<br><br>  mpres@tmXBLabelFontHeightF = 0.018<br>  mpres@tmXTLabelFontHeightF = 0.018<br>  mpres@tmYRLabelFontHeightF = 0.018<br>  mpres@tmYLLabelFontHeightF = 0.018<br><br>  plot1 = wrf_map_overlays(b,wks,(/contour_BASELINE_24/),pltres,mpres) ; Plot field over map background<br>  plot2 = wrf_map_overlays(b,wks,(/contour_A_24/),pltres,mpres) ; Plot field over map background<br>  plot3 = wrf_map_overlays(b,wks,(/contour_B_24/),pltres,mpres) ; Plot field over map background<br>  plot4 = wrf_map_overlays(b,wks,(/contour_C_24/),pltres,mpres) ; Plot field over map background<br>  plot5 = wrf_map_overlays(b,wks,(/contour_BASELINE_30/),pltres,mpres) ; Plot field over map background<br>  plot6 = wrf_map_overlays(b,wks,(/contour_A_30/),pltres,mpres) ; Plot field over map background<br>  plot7 = wrf_map_overlays(b,wks,(/contour_B_30/),pltres,mpres) ; Plot field over map background<br>  plot8 = wrf_map_overlays(b,wks,(/contour_C_30/),pltres,mpres) ; Plot field over map background<br><br>  ; Panel the WRF plots.<br>    pnlres                            = True<br>    pnlres@gsnPanelXWhiteSpacePercent = 5       ; Add white space b/w plots.<br>    pnlres@gsnPanelYWhiteSpacePercent = 0      ; Add white space b/w plots.<br>    pnlres@gsnPanelLabelBar           = True    ; Turn on common labelbar<br>    pnlres@lbBoxMinorExtentF          = 0.2<br>    pnlres@pmLabelBarOrthogonalPosF = 0.1<br>    pnlres@gsnFrame = False<br>    gsn_panel(wks,(/plot1,plot2,plot3,plot4,plot5,plot6,plot7,plot8/),(/2,4/),pnlres)<br><br><br>; Draw a text string at the bottom<br>  txres               = True<br>  txres@txFontHeightF = 0.012<br>  gsn_text_ndc(wks,"PM~B~2.5~N~ in ~F33~m~F21~gm~S~-3~N~",0.5,0.21,txres)<br><br>  frame(wks)</i><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Any help will be much appreciated.<br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Tabish U Ansari<br></font></span></i></span></div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Postdoctoral Researcher <br></font></span></i></span></div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Centre for Climate and Air Pollution Studies (C-CAPS)<br></font></span></i></span></div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">School of Physics, NUI-Galway</font></span></i><font size="1"><span style="font-family:tahoma,sans-serif"><i><span style="font-family:verdana,sans-serif">, Ireland</span></i><br></span></font></span></div><div><span style="color:rgb(11,83,148)"><font size="1"><span style="font-family:tahoma,sans-serif"><i><span style="font-family:verdana,sans-serif">ResearchGate: <a href="https://www.researchgate.net/profile/Tabish_Ansari" target="_blank">https://www.researchgate.net/profile/Tabish_Ansari</a></span></i><br></span></font></span></div></div></div></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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><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>