Hi,

With numpy 1.0b5 and a recent matplotlib from svn (rev 2761), and
numerix set to numpy, I'm getting errors like this:

Python 2.4.3 (#1, Apr  7 2006, 10:54:33) 
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
>>> eye(3)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/oldnumeric/mlab.py",
 line 24, in eye
    m = nn.equal(nn.subtract.outer(nn.arange(N), nn.arange(M)),-k)
NameError: global name 'nn' is not defined

Somehow numerix is getting the eye function from
numpy.oldnumeric.mlab, and it's not working. Maybe this is a numpy
bug, but apparently the eye function that you get from numpy does
work:

>>> from numpy import *
>>> eye(3)
array([[ 1.,  0.,  0.],
       [ 0.,  1.,  0.],
       [ 0.,  0.,  1.]])
>>> eye.__module__
'numpy.lib.twodim_base'

It seems that numerix is importing oldnumeric on purpose, but why is
this?

-- 
Jouni


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to