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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dr. Colombes

    #1

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

    On my home laptop computer, I'm trying to install the appropriate
    modules so that Python version 2.3.3 and IDLE version 1.0.2 (with an
    "import matplotlib.matl ab" statement) can produce nice MatLab-like
    plots.

    I have a matplotlib.matl ab-capable Python set-up running OK on my
    office desktop, which I obtained after downloading and installing a few
    more modules (numarray and numeric, I think).

    Now I get the following message about matplotlib.matl ab being
    deprecated:

    -------------

    matplotlib.matl ab deprecated, please import matplotlib.pyla b or simply
    pylab instead. See http://matplotlib.sf.net/matplotlib_to_pylab.py
    for a script which explains this change and will automatically convert
    your python scripts that use matplotlib.matl ab. This change was made
    because we were concerned about trademark infringement on The
    Mathwork's trademark of matlab.

    ---------------

    Unfortunately, the above URL does not exist.

    Thanks for suggestions, any help you can offer.

  • John Hunter

    #2
    Re: MatPlotLib.MatL ab troubles (how to install/runmatplotlib.P yLab?)

    >>>>> "Colombes" == Colombes <DrColombes@yah oo.com> writes:

    Colombes> matplotlib.matl ab deprecated, please import
    Colombes> matplotlib.pyla b 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.matl ab.
    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


    In a nutshell, wherever you previously imported matplotlib.matl ab you
    can import matplotlib.pyla b or equivalently, simply pylab

    OLD:
    from matplotlib.matl ab 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

    Comment

    • Dr. Colombes

      #3
      Re: MatPlotLib.MatL ab troubles (how to install/run matplotlib.PyLa b?)


      John Hunter wrote:[color=blue][color=green][color=darkred]
      > >>>>> "Colombes" == Colombes <DrColombes@yah oo.com> writes:[/color][/color]
      >
      > Colombes> matplotlib.matl ab deprecated, please import
      > Colombes> matplotlib.pyla b or simply pylab instead. See
      > Colombes> http://matplotlib.sf.net/matplotlib_to_pylab.py for a
      > Colombes> script which explains this change and will[/color]
      automatically[color=blue]
      > Colombes> convert your python scripts that use matplotlib.matl ab.
      > 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.matl ab you
      > can import matplotlib.pyla b or equivalently, simply pylab
      >
      > OLD:
      > from matplotlib.matl ab 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[/color]


      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.

      Comment

      • John Hunter

        #4
        Re: MatPlotLib.MatL ab troubles (how to install/runmatplotlib.P yLab?)

        >>>>> "Colombes" == Colombes <DrColombes@yah oo.com> writes:

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

        You can get either Numeric or numarray from
        http://sourceforge.net/projects/numpy. matplotlib works transparently
        with either (and provides a unified interface to both), but if you
        choose numarray you need to change the "numerix" variable to numarray
        in your matplotlib configuration file, which is described at


        Good luck!
        JDH

        Comment

        Working...