MatPlotLib.MatLab troubles (how to install/run matplotlib.PyLab?)

Dr. Colombes DrColombes at yahoo.com
Tue Feb 22 18:19:02 EST 2005


John Hunter wrote:
> >>>>> "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


John:

   Thanks for the help with the MatLab --> PyLab conversion.

   Now I only need to figure out how to install the correct "Numeric"
module(s).  I'm making progress, almost have my home laptop fully
capable with the MatLab-like (PyLab) graphs, plots.




More information about the Python-list mailing list