On Monday 12 June 2006 11:02, Darren Dale wrote:
> I can confirm this, using mpl svn2473 and numpy svn2603.
>
> On Monday 12 June 2006 03:08, Nils Wagner wrote:
> > matplotlib data path
> > /usr/lib64/python2.4/site-packages/matplotlib/mpl-data
> > $HOME=/home/nwagner
> > loaded rc file /home/nwagner/matplotlibrc
> > matplotlib version 0.87.3
> > verbose.level helpful
> > interactive is False
> > platform is linux2
> > numerix numpy 0.9.9.2603
> > Traceback (most recent call last):
> >   File "cascade.py", line 3, in ?
> >     from pylab import plot, show, xlim, ylim, subplot, xlabel, ylabel,
> > title, legend,savefig,clf,scatter
> >   File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ?
> >     from matplotlib.pylab import *
> >   File "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py", line
> > 198, in ?
> >     import mlab  #so I can override hist, psd, etc...
> >   File "/usr/lib64/python2.4/site-packages/matplotlib/mlab.py", line 74,
> > in ?
> >     from numerix.fft import fft, inverse_fft
> > ImportError: cannot import name inverse_fft

It looks like NumPy renamed inverse_fft to ifft. Adding the following to the 
numpy block in lib/matplotlib/numerix/fft/__init__.py lets me run pylab 
again:

    from numpy.dft import *
    inverse_fft = ifft 

Should I commit this?

Darren


_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to