What's new in matplotlib 0.51
Tkinter backend
Todd Miller has written a Tkinter backend. This is a significant
step forward, because now matplotlib works out of the box with any
python + numeric. The Tkinter backend works interactively from any
python shell - see the interactive documentation. Also, because
TkAgg uses the agg backend for rendering, it has all of the features
of agg, including fast antialiased rendering, freetype2, alpha
blending, mathtext, and so on. See
http://matplotlib.sf.net/backends.html#TkAgg. To use the TkAgg
backend, you must launch your scripts in interactive mode
> python -i myscript.py -dTkAgg
otherwise they'll just pop up and disappear.
freetype2 support added for agg backend
With freetype2, agg now renders fonts nicely even at very small
raster sizes.
math text
matplotlib now ships with the BaKoMa TeX Computer Modern fonts, and
displays math text using TeX expressions. See screenshot
http://matplotlib.sf.net/screenshots.html#mathtext_demo and the
mathtext documentation
http://matplotlib.sf.net/matplotlib.mathtext.html for usage
information. Currently available on GTK, Agg, TkAgg and GTKAgg. If
you build matplotlib yourself, you need to edit setup.py and set
BUILD_FT2FONT
configuration file
A configuration file is placed in your install path
(distutils.sysconfig.PREFIX + 'share/matplotlib'). This determines
many of the default figure properties: the default backend, line
properties, text properties, colors, and more. See
http://matplotlib.sf.net/.matplotlibrc for an example configuration
file and details. Place this in your home dir (linux and friends),
or edit in the install path (windows).
numarray support
Todd Miller has provided a numerix module
http://matplotlib.sf.net/matplotlib.numerix.html which allows you to
choose between Numeric of numarray. You can set Numeric or numarray
in your matplotlibrc file, with an environment variable, or from the
prompt. See the numerix module for more information and numarray
issues http://matplotlib.sf.net/NUMARRAY_ISSUES for a summary of
known issues in using numarray.
data clipping off by default
Data clipping, as opposed to viewport clipping, is turned off by
default. You can change the default behavior in .matplotlibrc or set
it to be true when needed as in examples/stock_demo.py
kwargs in plot commands
The plot commands now take kwargs that are can be used to set line
properties (any property that has a set_* method). You can use this
to set a line label (for auto legends), linewidth, anitialising,
marker face color, etc. Here is an example:
plot([1,2,3], [1,2,3], 'go-', label='line 1', linewidth=2)
plot([1,2,3], [1,4,9], 'rs', label='line 2')
axis([0, 4, 0, 10])
legend()
Bugfixes and minor improvements
* GTK : fixed a subplot selection GUI bug specific to python2.2
* GTK : fixed a text layout bug
* ALL : Fixed a multiple column subplot layout bug
* PS : Fixed an afm parser - thanks Dominique
* Agg : Agg now respects antialiased=False
Download:
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=221304