@header@
There are two kinds of matplotlib backends: vector based and raster based. The vector based backends, SVG and PS, produce ASCII text output files *.svg and *.ps; the PDF backend roduces a binary *.pdf output files. The core raster based renderer is the antigrain (agg) backend. This is a high quality 2D library that supports fast antialiasing, alpha blending and much more. If you want to produce PNGs or GUI images that support all of matplotlib's features, you should compile matplotlib with agg support and use one of the GUI agg backends as described below: GTKAgg, WXAgg, TkAgg or FLTKAgg. All of these features are included in the windows installer
You will need to have recent versions of freetype, libpng and zlib installed on your system. If you are using a package manager, also make sure the devel versions of these packages are also installed (eg freetype-devel).
matplotlib ships with a site.cfg.template file which you should copy to site.cfg and edit if you want to configure the build process, such as which user interfaces to build.
python setup.py build python setup.py installThere are many defaults that you can control in matplotlib in the matplotlibrc file.
For standard python installations, you will also need to install numpy in addition to the matplotlib installer. With a standard python + numpy + matplotlib, the following backends should work on windows: agg, tkagg, ps, svg. If you want others, eg a wx, wxagg, gtk or gtkagg, you'll need to install the requisite GUI toolkits, as described on backends. This is fairly easy, as both wxpython and pygtk come with windows friendly installers. The latter includes an additional requirement of the GTK runtime.
All of the GUI backends run on windows, but TkAgg is probably the best for interactive use from the standard python shell or ipython. The windows installer (*.exe or *.egg) on the download page contains all the code you need to get up and running. However, there are many examples that are not included in the windows installer. If you want to try the many demos that come in the matplotlib src distribution, download the zip file and look in the examples subdir.
Important: There are known conflicts with some of the backends with some python IDEs such as pycrust, idle. If you want to use matplotlib from an IDE, please consult backends for compatibility information. You will have the greatest likelihood of success if you run the examples from the command shell or by double clicking on them, rather than from an IDE. If you are interactively generating plots, your best bet is TkAgg from the standard python shell or ipython.
Note when running a GUI backend in OSX, you should launch your programs with pythonw rather than python, or you may get nonresponsive GUIs.
deb http://anakonda.altervista.org/debian packages/ deb-src http://anakonda.altervista.org/debian sources/
# apt-get update # apt-get install python-matplotlib python-matplotlib-doc