problem with matplotlib

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sturlamolden

    #1

    problem with matplotlib


    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:
    [color=blue][color=green][color=darkred]
    >>> import pylab as p[/color][/color][/color]
    Traceback (most recent call last):
    File "<pyshell#4 >", line 1, in ?
    import pylab as p
    File "C:\Python24\Li b\site-packages\pylab. py", line 1, in ?
    from matplotlib.pyla b import *
    File "C:\Python24\Li b\site-packages\matplo tlib\pylab.py", line 196,
    in ?
    import cm
    File "C:\Python24\Li b\site-packages\matplo tlib\cm.py", line 5, in ?
    import colors
    File "C:\Python24\Li b\site-packages\matplo tlib\colors.py" , line 33,
    in ?
    from numerix import array, arange, take, put, Float, Int, where, \
    File "C:\Python24\Li b\site-packages\matplo tlib\numerix\__ init__.py",
    line 61, in ?
    from _nc_imports import nx, inf, infinity, Infinity
    File
    "C:\Python24\Li b\site-packages\matplo tlib\numerix\_n c_imports.py",
    line 25, in ?
    inf = infty = infinity = Infinity = (array([1])/0.0)[0]
    TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and
    'float'[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]



    Sturla Molden

Working...