Patch for numpy support

This fixes import errors when using only numpy.

which import errors? I updated from numpy svn today and did a clean
build and test against matplotlib's poor man's regression suite using

import numpy
numpy.__version__

'0.9.7.2310'

and did not encounter any errors.... Or is my numpy version already
woefully out of date :slight_smile: ?

JDH

   > This fixes import errors when using only numpy.

which import errors? I updated from numpy svn today and did a clean
build and test against matplotlib's poor man's regression suite using

import numpy
numpy.__version__

'0.9.7.2310'

and did not encounter any errors.... Or is my numpy version already
woefully out of date :slight_smile: ?

Without the patch I get:

import pylab

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/lib/python2.3/site-packages/pylab.py", line 1, in ?
     from matplotlib.pylab import *
   File "/usr/local/lib/python2.3/site-packages/matplotlib/pylab.py", line 200, in ?
     from axes import Axes, PolarAxes
   File "/usr/local/lib/python2.3/site-packages/matplotlib/axes.py", line 14, in ?
     from artist import Artist, setp
   File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 4, in ?
     from transforms import identity_transform
   File "/usr/local/lib/python2.3/site-packages/matplotlib/transforms.py", line 193, in ?
     from matplotlib.numerix.linear_algebra import inverse
ImportError: cannot import name inverse

Pearu

···

On Thu, 30 Mar 2006, John Hunter wrote: