For pie charts, autopct lets a format string with the pie's value be printed on the chart. The default fraction of the radius that the text is printed at is 0.6; I wanted the text farther out at 0.85.
This small patch (against matplotlib 0.87.4) allows one to customize that radius by a new keyword argument, pctradius. The old behavior is still the default.
It works with the pylab interface because pylab.pie passes kwargs through.
I would love it if this were accepted into the main tarball; I hereby place this patch into the public domain, so there are no copyright restrictions on incorporating it into the matplotlib distribution.
Comments/questions welcome. I'm subscribed to matplotlib-devel.
pie-pctradius.patch (1.88 KB)
It is easy to find fault, if one has that disposition. There was once a man
who, not being able to find any other fault with his coal, complained that
there were too many prehistoric toads in it.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"