Re: gsn_panel

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 18 2010 - 09:19:03 MDT

Dear Mehmet,

I'll see if I can fix gsn_panel to allow a multi-dimensional array of plots.

It wants a 1D array of plots, so try this:

       gsn_panel(wks,ndtooned((/plot_L,plot_M,plot_R/)), (/3,3/),resP)

--Mary

On Oct 17, 2010, at 4:01 PM, Mehmet Coskun wrote:

> I have three different plot which have three dimensions, how can I draw fist dimension of 3 plot in a row, second dimension of 3 plots in a second row, third dimension of 3 plots in a third row, my script is below,
>
> plot_L=new(3,"graphic")
> plot_M=new(3,"graphic")
> plot_R=new(3,"graphic")
>
> ..
> ..
> ..
>
>
> do i=0,2
> plot_L(i) = gsn_csm_contour_map(wks,ypre(i,:,:),resources)
> plot_R(i) = gsn_csm_contour_map(wks,cpre(i,:,:),resources)
> plot_M(i) = gsn_csm_contour_map(wks,hpre(i,:,:),resources)
> end do
>
> resP = True
>
> resP@gsnPanelLabelBar = True ; add common colorbar
> resP@lbLabelAutoStride = True
> resP@lbLabelFontHeightF = 0.0050 ; change font size
> resP@txString = "precipitation "
> resP@gsnFrame = False
> resP@gsnDraw =False
> resP@gsnPanelRowSpec=False
> gsn_panel(wks,(/plot_L,plot_M,plot_R/), (/3,3/),resP)
>
> frame(wks)
> end
>
> Thanks
> mehmet
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 18 09:19:09 2010

This archive was generated by hypermail 2.1.8 : Tue Oct 19 2010 - 14:38:00 MDT