Matplotlib - Data Plotting in Python
[Posted January 25, 2005 by cook]
Matplotlib
is an easy to use plotting library with the capability of generating
a wide variety of data plots.
matplotlib is a python 2D plotting library which produces publication quality figures using in a variety of hardcopy formats and interactive GUI environments across platforms. matplotlib can be used in python scripts, interactively from the python shell (ala matlab or mathematica), in web application servers generating dynamic charts, or embedded in GUI applications.
Matplotlib supports a wide variety of plotting commands; the
pylab interface can be used for those who already know
Matlab, a popular
commercial mathematical application.
A comprehensive
tutorial is available for educational purposes and the
screenshots page has numerous examples of matplotlib in action,
including example code for each plot.
The FAQ
document contains additional usage information.
Matplotlib lives up to its claim of
being easy to use, just a few lines of code are all that is required
to produce professional looking output.
Installation of matplotlib is fairly straightforward, your
editor had no problem making it work on an older Red Hat 9
system, the Fedora Core 3 installation is still proving to be
somewhat tricky due to dependency issues.
Matplotlib requires
Numerical Python
(now called Numarray),
which in turn requires several additional libraries.
Version 0.71 of Matplotlib was announced this week.
The changes include:
- The numerix module has been reorganized to improve namespace issues.
- Contours now use the default colormap.
- The colorbar system now works with arbitrary axes.
- New accents are available in the mathtext command.
- Numerous bugs have been fixed.
- Other minor enhancements are included.
See the
what's new
document for more details on this release.
If you are looking for a fairly straightforward way to generate
automated or manually created data plots, Matplotlib is worth
investigating.
The source code is available for download
here.
(
Log in to post comments)