Re: a question of usage of gsn_panel

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

Thanks, Mary.

I intended to put the five figures in 5 rows, with each figure with
larger size
in X direction than in Y direction. But it turned out the both
directions have
same size. What did I do wrong?

Yinghui

Mary Haley wrote:
>
> Yinghui,
>
> The third argument to gsn_panel is supposed to indicate # rows by # of
> columns. Since you are using (/5,1/), this will give you 5 rows by 1
> columns. Try using (/1,5/) instead, to get 1 row by 5 columns.
>
> --Mary
>
> On Tue, 5 Feb 2008, Yinghui Liu wrote:
>
>> 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
>>
>>
>>
Received on Tue Feb 05 2008 - 17:29:18 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 05 2008 - 21:51:45 MST