Re: gsn_panel

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 06 2009 - 10:20:22 MST

Lei,

I'm by no means an expert on this technique, but I think instead of:

        gsn_panel(wks, plot, (/4,3/), pnlres)

you might try something like:

        gsn_panel(wks, plot(0:3), (/ 2, 2 /), pnlres)

        gsn_panel(wks, plot(4:7), (/ 2, 2 /), pnlres)

        gsn_panel(wks, plot(8:11), (/ 2, 2 /), pnlres)

Also, from the example at the following link, it looks like an
explicit call to frame(wks) is not necessary afterall:

        http://www.ncl.ucar.edu/Applications/Scripts/panel_19.ncl

Hope that helps.
Rick

On Nov 6, 2009, at 9:58 AM, Lei Meng wrote:

> Rick,
> My code is attached. Currently, it puts all 12 figures on one
> page. Thanks,
> Lei
>
> On Fri, Nov 6, 2009 at 11:47 AM, Rick Brownrigg <brownrig@ucar.edu>
> wrote:
> Lei,
>
> I was not suggesting you remove frame(wks) -- I think its required
> to achieve what you are after. Would it be possible to post your
> script?
>
> Rick
>
> On Nov 6, 2009, at 9:42 AM, Lei Meng wrote:
>
>> Hi Rick,
>> Do you think I need to remove "frame(wks)"? My problem was that
>> I have 12 figures and would like to put them on three pages (four
>> figures each page). It would be ideal that I can control their
>> positions on each page. What should I do? Thanks,
>> Lei
>>
>> On Fri, Nov 6, 2009 at 10:59 AM, Rick Brownrigg <brownrig@ucar.edu>
>> wrote:
>> Lei,
>>
>> Are you calling "frame(wks)" at the point where you want the next
>> page? (where wks is your workstation variable).
>>
>> Rick
>>
>>
>> On Nov 6, 2009, at 7:39 AM, Lei Meng wrote:
>>
>> Hi,
>> I am wondering if there are some ways to draw plots on several
>> pages and each page contains panel plots. I use gsn_panel and it
>> only panels plots on one page and overwrites previous outputs.
>> Thanks,
>> Lei
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> <spatial_ch4.ncl>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 6 10:19:50 2009

This archive was generated by hypermail 2.1.8 : Sun Nov 08 2009 - 22:22:57 MST