On Sat, Oct 23, 2010 at 1:37 PM, Kynn Jones <kyn...@gmail.com> wrote:
> 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)
> If that code ever executes it will fail with "TypeError: not all arguments
> converted during string formatting".
> It's trivial to fix, of course, (just delete the '+') but I don't know how
> to submit a patch.  Could someone please show me?

Good catch. I can make the change if you want. However, if you want to
use as a learning experience, first make a copy of the original file,
say figure.py.orig. Then make the changes to your figure.py. Then you
need to run diff:

diff -u figure.py.orig figure.py > patchname.diff

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
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