Thanks.  There were in fact several points of incompatibility with 
Numeric and numarray. (Normally I would have checked this, but I slipped 
up.) I have changed quiver.py and numerix to solve the immediate 
problem, and to slightly reduce the incidence of such problems in the 
future.  The real solution, of course, will be a complete transition to 
numpy.

Regarding griddata: I downloaded it a few minutes ago, built it, and 
tested it with numpy, and it worked fine, at least with the test.py that 
comes with the package.  Looking very quickly at the code, I don't see 
anything specific to any numeric package; it is using the buffer 
interface at the C level and matplotlib.numerix at the python level. 
Perhaps the author, Jeff Whitaker, can shed more light on this question.

Eric

[EMAIL PROTECTED] wrote:
>               Hi,
> 
> just to tell that the new quiver2 sample are not working with numarray. 
> 
> /usr/lib/python2.4/site-packages/matplotlib/quiver.py", line 237, in 
> _make_verts
>     scale = nx.amax(a) * math.sqrt(len(a)) # crude auto-scaling
> AttributeError: 'module' object has no attribute 'amax'
> 
> 
> I think that we will have soon a big problem with the scientific soft in 
> python. Some of them will use numpy, Numeric or numarray and they will be 
> totally incompatible. Theorically numpy was to do the reunification but a 
> transition period must exist. The module Numerix was doing it for matplotlib 
> but it's beginning to have more and more incompatibility. 
> The quiver problem is not the only one. I used a lot the griddata module to 
> interpolate some irregulary spaced data, it was working very fine but it's 
> not working with numpy and I don't have the skill to change it unfortunatly.
> 
> I want to thank you for all the work done for matplotlib, the critics are 
> only 
> to avoid people to be distressed because one day all their softs won't work 
> due to numpy/numarray/Numeric incompatibility and stop to use python.
> 
> Regards,
> 
> N.
> 
> 
> 
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to