@header@
Installing matplotlib
matplotlib requires python 2.2+ and Numeric or numarray.
If these dependencies are satisfied, just do the usual thing:
> python setup.py install
Matplotlib is known to work on several linux, win32 and OS X
platforms; it should run anywhere that python and Numeric run.
To get the most out of matplotlib, you will probably want to install
one or more of the additional backends, which provide output to
various GUI and image rendering libraries. Each of these has
different prerequistes and strengths; see which backend should I use?.
With the windows installer, the postscript, Agg and TkAgg backends
should work out of the box if you have Numeric/numarray already
installed. For other backends (WX, Paint) and operating systems,
follow the instructions below and on matplotlib
backends.
Note that if you install matplotlib anywhere other than the default
location, you will need to set the MATPLOTLIBDATA environment variable
to point to the install base dir.
GTK Quickstart
The GTK backend was the first and thus arguably most mature backend.
Below is a quickguide to what you'll need to get matplotlib up and
running with the GTK backend.
Windows GTK Quickstart
These install instructions will provide the GTK and GTKGTKAgg backends on windows. If you
don't already have python installed, you may want to consider using
the enthought edition of
python, which has scipy, Numeric, and wxpython, plus a lot of other
goodies, preinstalled.
- Install
Numeric/numarray. If you are using the enthougt edition of python,
you can skip this step.
- Install the
GTK runtime (currently version 2.2.4.1). I recommend not using
the default install location as it makes it difficult to set your
path; use C:\GTk instead
- Install pygtk-2.0.0
- Modify your path. Check this
FAQ entry for information on how to do this right.
- Install matplotlib using the windows installer on the download page
Linux GTK quickstart
- Important: To generate plots in the graphical user
interface GTK, you need to have GNOME 2 and at least pygtk-1.99.16
installed. Don't assume that because you are running redhat 9 that
you have the latest libs. Redhat 8 and 9 come with the GNOME2, but
you will still need to upgrade to at least pygtk-1.99.16. The latest
version (currently 2.0.0) is recommended. I don't have specific
information about the other linux distributions.
Debian Users
Vittorio Palmisano posted this message to matplotlib-devel
Hello,
I've made a Debian package for matplotlib and I've put it at:
http://anakonda.altervista.org/debian/
I've read some specification for dependencies from
http://bugs.debian.org/206691, this is my first package and so there
are some (many?) things to fix. I think that the package may also
include the api documentation generated with pydoc.
@footer@