Hi, There appears to be a bug in line 212 of the example
> finance_work2.py. It reads "setp ...", which does not
> work. Changing it to "set ..." repaired the problem.
You are probably using an old version of matplotlib. Recent versions
use setp rather than set to avoid clobbering the python2.4 built-in
set.
The change you made is fine for old versions of matplotlib, but will
no work for newer versions.
In general, it is a good idea to periodically read
http://matplotlib.sourceforge.net/CHANGELOG
and
http://matplotlib.sourceforge.net/API_CHANGES
which document these kinds of changes by version number. Eg, you will
see in the latter document that setp was introduced in 0.84. You can
find out your version number by doing
>>> import matplotlib
>>> matplotlib.__version__
Cheers,
JDH