|
From: Darren D. <dd...@co...> - 2006-01-19 13:43:52
|
On Thursday 19 January 2006 07:49, Eric Emsellem wrote: > Hi, > > I have switched to numpy (I was using numarray before) with matplotlib. > > I have now however a problem when doing for example: > > x =3D numpy.core.multiarray.arange(0.,6.,1.) > y =3D numpy.core.multiarray.arange(0.,6.,1.) > clos =3D numpy.core.multiarray.arange(0.,1.,.1) > scatter(x,y,c=3Dclos) > > I get: > ................. > /usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py in > typecode(a) > =A0 =A0 =A089 =A0 =A0 # so assume numpy. > =A0 =A0 =A090 =A0 =A0 def typecode(a): > ---> 91 =A0 =A0 =A0 =A0 return a.dtypechar > =A0 =A0 =A092 =A0 =A0 def iscontiguous(a): > =A0 =A0 =A093 =A0 =A0 =A0 =A0 return a.flags.contiguous > > AttributeError: 'numpy.ndarray' object has no attribute 'dtypechar' This reflects a recent change in numpy. Try updating your MPL from cvs, it= =20 should be fixed there. Darren |