I came across this Python syntax bug in matplotlib.figure.add_subplot:
raise ValueError(
"polar=True, yet projection=’%s’. " +
“Only one of these arguments should be supplied.” %
projection)
(That code will fail with “TypeError: not all arguments converted during string formatting”.)
I’ve attached a patch file.
What I did, per http://matplotlib.sourceforge.net/faq/howto_faq.html#submit-a-patch (thanks to John Hunter for the link):
% svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib
% vi matplotlib/lib/matplotlib/figure.py
% cd matplotlib/lib/matplotlib
% svn diff > figure_py_patch.diff
~kj
figure_py_patch.diff (574 Bytes)