maximize the plot

From: ousmane ndiaye <ondiaye70_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 15 2012 - 08:15:42 MST

Hi,
I want to make each panel span the width of the paper but it doesn't here
is part of my coding :
==

     plot = new (4, graphic)
     wks = gsn_open_wks("pdf","skill")
     res = True ; plot mods desired
     res@gsnDraw = False
     res@gsnFrame = False
     res@trXMinF = 1
     res@trXMaxF = 21
     res@tiXAxisString = "Stations "
     res@tiYAxisString = "Correlation "
     res@xyLineThicknesses = (/2.0,1.0,1.0,1.0,1.0,2.0/) ; make 2nd lines
thicker
     res@xyLineColors = ccols(:) ; change line color
     res@xyMonoDashPattern = False ;True ; all solid

  res@pmLegendDisplayMode = "Always" ; turn on legend
  res@pmLegendSide = "Bottom" ; Change location of
  res@pmLegendParallelPosF = .25 ; move units right
  res@pmLegendOrthogonalPosF = -0.8 ; move units down
  res@pmLegendWidthF = 0.125 ; Change width and
  res@pmLegendHeightF = 0.15 ; height of legend.
  res@lgLabelFontHeightF = .015 ; label font height
  res@xyExplicitLegendLabels = clegend(:)

; set the X axis
  res@tmXBMode = "Explicit"
  res@tmXBValues =x
  res@tmXBLabelAngleF =-90 ; making label tilted
  res@tmXBLabels = nom

     res@trYMinF = 0
     res@trYMaxF = 1
        res@tiMainString = "Intra-seasonal raw "
   plot(0) = gsn_csm_xy (wks, x, rraw(:,:), res)
        res@tiMainString = "Intra-seasonal Anomaly "
   plot(1) = gsn_csm_xy (wks, x, rano(:,:), res)
        res@tiMainString = "Annual cycle spearman"
   plot(2) = gsn_csm_xy (wks, x, rspr(:,:), res)

     res@trYMinF = 2
     res@trYMaxF = 12
     res@pmLegendOrthogonalPosF = -1.4 ; move units down
     res@pmLegendParallelPosF = .15 ; move units right
     res@tiMainString = "RMSE on the Ann cycle"
   plot(3) = gsn_csm_xy (wks, x, rmse(:,:), res)

    resP = True ; modify the panel plot
    resP@gsnMaximize = True ; Maximize plot in frame.
    gsn_panel(wks,plot,(/4,1/),resP) ; now draw as one plot

delete([/wks,plot,res,resP/])

==

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 15 08:16:00 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2012 - 11:16:05 MST