a question of usage of gsn_panel

From: Yinghui Liu <yinghuil_at_nyahnyahspammersnyahnyah>
Date: Tue, 05 Feb 2008 18:04:51 -0600

Hi, all:

I am trying to use gsn_panel to plot five figures in one page in 5 rows.
My program is below. My question is why the five figures squeezed
at the center, not extending from the left to the page to the right?
The figure is attached.

Thanks,

Yinghui Liu

wks = gsn_open_wks("ps","streamfunction")

res = True
 res_at_gsnFrame = False
 res_at_gsnDraw = False
 
 res_at_cnInfoLabelOn = False
 
 res_at_cnLevelSpacingF = 2.0 ; contour level spacing
 res_at_gsnContourZeroLineThicknessF = 1. ; doubles thickness
of zero contour
 res_at_gsnContourNegLineDashPattern = 1 ; sets negative contours
to dash pattern 1
 res_at_trYMinF = 100.
 
 plot = new(5,graphic)
 
 res_at_tiMainString = "Annual mean"
 plot(0) = gsn_csm_pres_hgt(wks,m_year,res)
 
 res_at_tiMainString = "Winter mean (DJF)"
 plot(1) = gsn_csm_pres_hgt(wks,m_winter,res)
 
 res_at_tiMainString = "Spring mean (MAM)"
 res_at_trYMinF = 100.
 plot(2) = gsn_csm_pres_hgt(wks,m_spring,res)
 
 res_at_tiMainString = "Summer mean (JJA)"
 plot(3) = gsn_csm_pres_hgt(wks,m_summer,res)
 
 res_at_tiMainString = "Autumn mean (SON)"
 plot(4) = gsn_csm_pres_hgt(wks,m_autumn,res)
 
 gsn_panel(wks,plot,(/5,1/),False) ; create panel plot
   

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

streamfunction.gif
Received on Tue Feb 05 2008 - 17:04:51 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 05 2008 - 17:17:22 MST