Trouble with Matplotlib 0.87.1 on Windows

"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'
    >>>>

Are you sure about your numpy version? I am not seeing this on linux

In [1]: import numpy

In [4]: numpy.__version__
Out[4]: '0.9.5'

In [3]: numpy.ndarray([1])/0.0
Out[3]: array([ -inf])

Could you run these commands on your system?

JDH

John Hunter wrote:

"Sturla" == Sturla Molden <sturla.molden@...1032...> writes:

    > "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'
    >>>>

Are you sure about your numpy version? I am not seeing this on linux

In [1]: import numpy

In [4]: numpy.__version__
Out[4]: '0.9.5'

In [3]: numpy.ndarray([1])/0.0
Out[3]: array([ -inf])

Could you run these commands on your system?

Well, that's not the right answer, either.

In [18]: numpy.array([1])/0.0
Out[18]: array([ inf])

But I think the *real* right answer is this:

In [15]: numpy.inf
Out[15]: inf

···

--
Robert Kern
robert.kern@...287...

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
  -- Umberto Eco

Here is what happens:

import numpy
numpy.__version__

'0.9.5'

numpy.ndarray([1])/0.0

array([ 1.#INF0000e+000])

Well, it is numpy 0.9.5, but the problem could be numpy 0.9.5 on Windows.
Thanks.

Sturla Molden

···

    >
"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'
    >>>>

Are you sure about your numpy version? I am not seeing this on linux

In [1]: import numpy

In [4]: numpy.__version__
Out[4]: '0.9.5'

In [3]: numpy.ndarray([1])/0.0
Out[3]: array([ -inf])

Could you run these commands on your system?

JDH