|
From: Chris N. <ca...@gm...> - 2005-05-13 07:26:45
|
I am trying out quiver using IPython (which I am new to so my apologies if= =20 this is actually a IPython question) and matplotlib .80 and the latest=20 numeric. The code I try and the subsequent error: In [1]: x=3Dones([5,5]) In [2]: quiver(x,x) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) C:\Documents and Settings\root\Desktop\<console> C:\Python24\Lib\site-packages\matplotlib\pylab.py in quiver(*args, **kwargs= ) 2137 hold(h) 2138 try: -> 2139 ret =3D gca().quiver(*args, **kwargs) 2140 draw_if_interactive() 2141 except: C:\Python24\Lib\site-packages\matplotlib\axes.py in quiver(self, U, V,=20 *args, **kwargs) 852 if do_scale: 853 Nmax =3D maximum.reduce(maximum.reduce(N)) --> 854 U *=3D (S/Nmax) 855 V *=3D (S/Nmax) 856 N /=3D Nmax TypeError: return array has incorrect type What could be the issue? Thanks for the help. -Chris |