Re: panel

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 16 2010 - 08:00:28 MDT

The gsn_panel routine wants a 1D array, not a 2D array.

You will need to create your plots in the order of left-to-right, top-
to-bottom.

So, if you want plots like this:

     plot A plot B
     plot C plot D

You have to create them in this order:

   plot = new(4,graphic)

   plot(0) = ...code for plot A
   plot(1) = ...code for plot B
   plot(2) = ...code for plot C
   plot(3) = ...code for plot D

If you have a 2D plot array, then you can probably use Dennis' method
to reorder the plots,
but then you'll have to write it to a 1D array:

>> [2] plot(:,:)
>> plot!0 = "row"
>> plot!1 = "col"

>
   plot1d = ndtooned(plot(col | :, row | :))

   gsn_panel(wks,plot1d,(/2,2/),resp)

  --Mary

On Jun 15, 2010, at 10:36 PM, chen wrote:

> I have tried the second method.
>
> plot=new((/2,2/),graphic)
> ...
> gsn_panel(wks,plot(:,:),(/2,2/),resp)
>
> But the wrong messege appears:
> fatal: Number of dimensions in parameter (1) of (gsn_panel) is (2),
> (1) dimensions were expected.
>
> Can the gsn_panel recognize a muti-dimension plot?
>
> Chen
>
> --------------------------------------------------
> From: "Dennis Shea" <shea@ucar.edu>
> Sent: Wednesday, June 16, 2010 11:21 AM
> To: "chen" <fjfzcgh@gmail.com>
> Subject: Re: panel
>
>> [1] You could create the files with the correct order,
>>
>> or
>>
>> [2] plot(:,:)
>> plot!0 = "row"
>> plot!1 = "col"
>>
>> gsn_panel(wks, plot(col|:,row|:), (/n,n/), resP)
>>
>> On 6/15/10 7:12 PM, chen wrote:
>>> Hi
>>> Is there a rountine to transpose the figures in a panel with n*n
>>> figures
>>> (a squared panel)? That is, the figures are arranged in column and
>>> then
>>> in row, insted of the converse.
>>>
>>>
>>>
>>> _______________________________________________
>>> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 16 08:00:41 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 16 2010 - 15:28:33 MDT