From: John H. <jdh...@ac...> - 2006-02-24 20:17:37
|
>>>>> "nicky" == nicky van foreest <van...@gm...> writes: nicky> Hi, There appears to be a bug in line 212 of the example nicky> finance_work2.py. It reads "setp ...", which does not nicky> 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 |