<p>If you're using Linux, you can use imagemagick for this if need be:</p>
<p>> convert infile -trim outfile</p>
<p>you can then use -border to create a border of as much white space as you need. hope this helps .</p>
<p>Brandon</p>
<div class="gmail_quote">On Jul 6, 2012 12:34 PM, "Noel Aloysius" <<a href="mailto:noel.aloysius@gmail.com">noel.aloysius@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello NCL,<br><br>I created a panel plot with 14 figures. I want to maximize the plot area by stripping the white space at the edges. I am not sure which plot resources do this.<br>The section of the code and the plot is attached. <br>
<br>Thank you in advance for your help,<br>Noel<br><br>;***********************************************************************************************<br> wks = gsn_open_wks("png", diro + "pr_zonalAvg")<br>
plot = new(14, graphic)<br> gsn_define_colormap(wks, "precip3_16lev")<br><br> res1 = True ; plot mods desired<br> res1@gsnDraw = False<br> res1@gsnFrame = False<br>
res1@gsnMaximize = True<br> res1@gsnRightStringFontHeightF = 0.04<br> res1@cnFillOn = True ; turn on color<br> res1@gsnSpreadColors = True ; use full color table<br>
res1@cnLinesOn = False ; no contour lines<br> res1@cnInfoLabelOn = False<br> res1@pmTickMarkDisplayMode = "Always" ; turn on fancy tickmarks<br><br> res1@tmXBMode = "Explicit" ; label independently<br>
res1@tmXBValues = ispan(0,11,1)<br> res1@tmXBLabels = (/"J","F","M","A","M","J","J","A","S","O","N","D"/)<br>
<br> res1@lbLabelBarOn = False<br> res1@cnLevelSelectionMode = "ManualLevels"<br> res1@cnLevelSpacingF = 20.<br> res1@cnMinLevelValF = 20.<br> res1@cnMaxLevelValF = 300.<br>
<br> res1@tmYROn = False<br> res1@tmXBLabelFontHeightF = 0.025<br> res1@tmYLLabelFontHeightF = 0.025<br><br> do i=0,11<br> res1@gsnRightString = gcm_names(i)<br> plot(i) = gsn_csm_lat_time(wks, PzoneLat_7100(raw_bc|0,GCM|i,lat|:,month|:), res1)<br>
end do<br><br> res1@gsnRightString = "Obs"<br> plot(12) = gsn_csm_lat_time(wks, PzoneLat_7100obs(lat|:,month|:), res1)<br><br> res1@gsnRightString = "bias corr. GCM avg."<br> plot(13) = gsn_csm_lat_time(wks, PzoneLat_7100_BCavg(lat|:,month|:), res1)<br>
<br> pres1 = True<br> pres1@gsnPanelLabelBar = True<br> pres1@gsnFrame = False<br> pres1@lbLabelFontHeightF = 0.01<br> pres1@lbOrientation = "horizontal"<br>
pres1@lbLabelAutoStride = True<br> pres1@gsnPanelYWhiteSpacePercent = 1.5<br> pres1@gsnBoxMargin = 0.0<br> pres1@gsnPanelRowSpec = True ; tell panel what order to plot<br> pres1@gsnPanelCenter = True ; centered plot<br>
pres1@gsnMaximize = True<br><br> gsn_panel(wks,plot,(/6,6,2/),pres1)<br> frame(wks)<br>;****************************************************************************************************<br><br>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div>