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/matplotlibmatplotlib
% vi matplotlib/lib/matplotlib/figure.py
% cd matplotlib/lib/matplotlib
% svn diff > figure_py_patch.diff

~kj

Attachment: figure_py_patch.diff
Description: Binary data

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to