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.” %


(That code will fail with “TypeError: not all arguments converted during string formatting”.)

I’ve attached a patch file.

What I did, per (thanks to John Hunter for the link):

% svn co matplotlib

% vi matplotlib/lib/matplotlib/

% cd matplotlib/lib/matplotlib

% svn diff > figure_py_patch.diff


figure_py_patch.diff (574 Bytes)