Re: overlay in panel plot

From: Ufuk Utku Turuncoglu <turuncu_at_nyahnyahspammersnyahnyah>
Date: Thu, 30 Nov 2006 09:37:34 +0200

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
Received on Thu Nov 30 2006 - 00:37:34 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 30 2006 - 14:51:53 MST