Hi ALL,
I am just starting to leave the matlab to work with matplotlib 82-5 in my
ubuntu linux. I have problens to make a vector fild plots using quiver. I have
a netcdf file that i extract a u_velocity and v_velocity variables, after i
mask the array and try to quiver. i get the following error
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 2256, in
quiver
ret = gca().quiver(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 828, in
quiver
U = asarray(U)
File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, in
asarray
return multiarray.array(a, typecode, copy=0, savespace=savespace)
File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 632, in
__array__
raise MAError, \
MA.MA.MAError: Cannot automatically convert masked array to Numeric because data
is masked in one or more locations.
But if i do not mask the array but i try to plot without the scale it gets the
error :
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 2256, in
quiver
ret = gca().quiver(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 855, in
quiver
if Nmax == 0: #jb
UnboundLocalError: local variable 'Nmax' referenced before assignment
Could someone helps me?
Thanks
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale
o discador agora!
http://br.acesso.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users