[ncl-talk] Paneling unequal number of plots in different rows

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Thu Jul 2 12:20:08 MDT 2020


Gsn_panel can not be used to panel plots of different sizes in the same
call.  This is clearly stated in the function documentation.

Example panel_14 demonstrates Dennis's suggestion.  This is close to what
you want.  It shows how to make two plots that are the same size with
gsn_panel, then add more plots using viewport resources vpXF, vpYF,
vpWidthF, and vpHeightF.  Also see panel_9, panel_42 and panel_43.


On Thu, Jul 2, 2020 at 12:06 PM Dennis Shea via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> *https://www.ncl.ucar.edu/Applications/panel.shtml*
> <https://www.ncl.ucar.edu/Applications/panel.shtml>
>
> In my opinion: *gsn_panel *
> <https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_panel.shtml>can
> not be used directly to do what you want.
> *gsn_panel* assumes all the plots are the same size.
>
> Likely, you will have to manually place the top plot (say top half) and
> then use *gsn_panel *in the bottom half.
>
> Good luck
>
>
> On Thu, Jul 2, 2020 at 11:41 AM Tabish Ansari via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi
>>
>> I am trying to panel 4 plots in 2 rows such that only the first plot is
>> in the top row while the remaining 3 plots are in the bottom row. This is
>> because the first plot is an extended time-series with a very wide aspect
>> ratio while the other three plots are square-shaped scatter plots. I want
>> them panelled such that the total width of the bottom three plots equals
>> the width of the time-series plot.
>>
>> Is it possible to achieve this using gsn_panel?
>>
>> Many thanks
>>
>> Cheers,
>>
>> Tabish
>>
>>
>> *Tabish U Ansari*
>>
>> *Postdoctoral Researcher *
>>
>> *Centre for Climate and Air Pollution Studies (C-CAPS)*
>> *School of Physics, NUI-Galway**, Ireland*
>> *ResearchGate: https://www.researchgate.net/profile/Tabish_Ansari
>> <https://www.researchgate.net/profile/Tabish_Ansari>*
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200702/8fd938af/attachment.html>


More information about the ncl-talk mailing list