Stripping white space at the edges

From: Noel Aloysius <noel.aloysius_at_nyahnyahspammersnyahnyah>
Date: Fri Jul 06 2012 - 10:34:02 MDT

Hello NCL,

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.
The section of the code and the plot is attached.

Thank you in advance for your help,
Noel

;***********************************************************************************************
  wks = gsn_open_wks("png", diro + "pr_zonalAvg")
  plot = new(14, graphic)
  gsn_define_colormap(wks, "precip3_16lev")

  res1 = True ; plot mods desired
  res1@gsnDraw = False
  res1@gsnFrame = False
  res1@gsnMaximize = True
  res1@gsnRightStringFontHeightF = 0.04
  res1@cnFillOn = True ; turn on color
  res1@gsnSpreadColors = True ; use full color table
  res1@cnLinesOn = False ; no contour lines
  res1@cnInfoLabelOn = False
  res1@pmTickMarkDisplayMode = "Always" ; turn on fancy tickmarks

  res1@tmXBMode = "Explicit" ; label independently
  res1@tmXBValues = ispan(0,11,1)
  res1@tmXBLabels =
(/"J","F","M","A","M","J","J","A","S","O","N","D"/)

  res1@lbLabelBarOn = False
  res1@cnLevelSelectionMode = "ManualLevels"
  res1@cnLevelSpacingF = 20.
  res1@cnMinLevelValF = 20.
  res1@cnMaxLevelValF = 300.

  res1@tmYROn = False
  res1@tmXBLabelFontHeightF = 0.025
  res1@tmYLLabelFontHeightF = 0.025

  do i=0,11
    res1@gsnRightString = gcm_names(i)
    plot(i) = gsn_csm_lat_time(wks,
PzoneLat_7100(raw_bc|0,GCM|i,lat|:,month|:), res1)
  end do

  res1@gsnRightString = "Obs"
  plot(12) = gsn_csm_lat_time(wks, PzoneLat_7100obs(lat|:,month|:), res1)

  res1@gsnRightString = "bias corr. GCM avg."
  plot(13) = gsn_csm_lat_time(wks, PzoneLat_7100_BCavg(lat|:,month|:), res1)

  pres1 = True
  pres1@gsnPanelLabelBar = True
  pres1@gsnFrame = False
  pres1@lbLabelFontHeightF = 0.01
  pres1@lbOrientation = "horizontal"
  pres1@lbLabelAutoStride = True
  pres1@gsnPanelYWhiteSpacePercent = 1.5
  pres1@gsnBoxMargin = 0.0
  pres1@gsnPanelRowSpec = True ; tell panel what order to
plot
  pres1@gsnPanelCenter = True ; centered plot
  pres1@gsnMaximize = True

  gsn_panel(wks,plot,(/6,6,2/),pres1)
  frame(wks)
;****************************************************************************************************

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

pr_zonalAvg_clim7100.png
Received on Fri Jul 6 10:34:19 2012

This archive was generated by hypermail 2.1.8 : Mon Jul 09 2012 - 10:45:32 MDT