[ncl-talk] Panel plot

Adam Phillips asphilli at ucar.edu
Thu Sep 28 10:39:25 MDT 2017


Hi Guilherme,
Thanks for sending an easy to run script and data, as that made debugging
this much easier. I think you need to move the following two lines outside
of your two do loops and set up a counter to keep track of the plot number:
wks       = gsn_open_wks ("pdf","sazonal.sem.defasagem")
plot      = new(nfig,graphic)
cntr = 0
do i = 0,dimsizes(fontes)-1
.....
do k = 0,ncol-1
......
plot(cntr) = gsn_csm_xy(wks,x,reta,res)
  cntr = cntr+1
end do
end do

I've attached a modified version of your script. Hope that helps!
Adam

On Thu, Sep 28, 2017 at 8:42 AM, Guilherme Martins <jgmsantos at gmail.com>
wrote:

> Hello my friends!
>
> I have a script that should generate a panel of 20 figures, but the final
> result of it only shows the last 4 figures. I did some research on the
> problem but did not find a possible solution. I believe my problem is my
> loop, I made some changes but without success.
>
> I send my script and data used.
>
> Could someone give me a hand?
>
> Thank you,
>
> Guilherme.
> --
>
> <http://www.inpe.br/queimadas/>
> Guilherme Martins
> Meteorologista
>
>  Rodovia Presidente Dutra, km 40 - 12630000
>       Cachoeira Paulista, SP - Brasil
>   +55 12 3186-9205 <+55%2012%203186-9205>  +55 12 98111-4292
> <+55%2012%2098111-4292>
>   jgmsantos at gmail.com
>  http://www.inpe.br/queimadas
> [image: skype] guilherme.martins.
>  https://www.researchgate.net/profile/Guilherme_Martins6
> [image: Currículo Lattes] http://lattes.cnpq.br/5997657584785803
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170928/f31a03ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.ncl
Type: text/x-ncl
Size: 2892 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170928/f31a03ed/attachment.bin>


More information about the ncl-talk mailing list