MatPlotLib.MatLab troubles (how to install/run matplotlib.PyLab?)
John Hunter
jdhunter at ace.bsd.uchicago.edu
Mon Feb 21 21:06:40 EST 2005
>>>>> "Colombes" == Colombes <DrColombes at yahoo.com> writes:
Colombes> matplotlib.matlab deprecated, please import
Colombes> matplotlib.pylab or simply pylab instead. See
Colombes> http://matplotlib.sf.net/matplotlib_to_pylab.py for a
Colombes> script which explains this change and will automatically
Colombes> convert your python scripts that use matplotlib.matlab.
Colombes> This change was made because we were concerned about
Colombes> trademark infringement on The Mathwork's trademark of
Colombes> matlab.
Colombes> Unfortunately, the above URL does not exist.
Oops -- that should be
http://matplotlib.sourceforge.net/matlab_to_pylab.py
In a nutshell, wherever you previously imported matplotlib.matlab you
can import matplotlib.pylab or equivalently, simply pylab
OLD:
from matplotlib.matlab import plot
NEW:
from pylab import plot
The script linked above will recursively search and replace these
strings for you in your scripts directory.
JDH
More information about the Python-list
mailing list