problem with matplotlib

S

sturlamolden

Recently, I have been trying to test Python as an alternative to
Matlab. I have problems getting matplotlib to work on Windows
(ActivePython 2.4.2). After installing the precompiled binary packages
for NumPy 0.9.5 and Matplotlib 0.87.1, I get this error message:
Traceback (most recent call last):
File "<pyshell#4>", line 1, in ?
import pylab as p
File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
from matplotlib.pylab import *
File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196,
in ?
import cm
File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
import colors
File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33,
in ?
from numerix import array, arange, take, put, Float, Int, where, \
File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 61, in ?
from _nc_imports import nx, inf, infinity, Infinity
File
"C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",
line 25, in ?
inf = infty = infinity = Infinity = (array([1])/0.0)[0]
TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and
'float'


Sturla Molden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top