Re: [pyngl-talk] Re: overlay in panel plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 30 Nov 2006 14:39:27 -0700 (MST)

Ufuk,

I will need to look into why the overlay is not working for paneled
plots. However, this is what the Ngl.contour_map function is for, so
you shouldn't have to call Ngl.overlay yourself.

Perhaps if you can tell me why you need to do this in two separate
steps, then I might be able to help you figure out a way to do it
using Ngl.contour_map.

Thanks,

--Mary

On Thu, 30 Nov 2006, Ufuk Utku Turuncoglu wrote:

> hi,
>
> i try to solve the problem bu i fail. i use the following commands in
> plot section,
>
> plot0 = Ngl.map(wks, res1)
> plot1 = Ngl.contour(wks, tr_trj, res1)
> plot.append(Ngl.overlay(plot0,plot1))
>
> but it gives the,
>
> File "plot_trj_v5_ncep.py", line 396, in ?
> Ngl.panel(wks, plot[0:6], [3,2], panel)
> File "/usr/local/lib/python2.4/site-packages/PyNGL/Ngl.py", line 2605,
> in pane
> l
>
> panel_wrap(wks,pseq2lst(plots),len(plots),dims,len(dims),rlist1,rlist2,pvoid
> ())
> File "/usr/local/lib/python2.4/site-packages/PyNGL/Ngl.py", line 366,
> in pseq2
> lst
> lst.append(pobj2lst(pseq[i]))
> File "/usr/local/lib/python2.4/site-packages/PyNGL/Ngl.py", line 354,
> in pobj2
> lst
> return [pobj.base,pobj.contour,pobj.vector,pobj.streamline,pobj.map, \
> AttributeError: 'NoneType' object has no attribute 'base'
>
> error messages.
>
> i also try,
>
> plot0 = Ngl.map(wks, res1)
> plot1 = Ngl.contour(wks, tr_trj, res1)
> Ngl.overlay(plot0,plot1)
> plot.append(plot0)
>
> and i generates following error,
>
> fatal:Invalid plot ID=-1778185336 passed to NhlGetBB
> fatal:Invalid plot ID=-1778185336 passed to NhlGetBB
> fatal:NhlDraw: Invalid Layer Id: -1778185336
>
> best regards,
>
> Ufuk Utku Turuncoglu
> ITU
> HPC Lab
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Nov 30 2006 - 14:39:27 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 30 2006 - 14:52:19 MST