matplotlib/matplotlib — pull request #735 by rhattersley (2012-03-01 16:12:29+00:00)
Title: Fix empty wedge vertices

*This is a follow-up to a patch I sent to matplotlib-devel back in July 2011.*

Using `matplotlib.path.Path.arc()` to create a wedge (e.g. via `matplotlib.path.Path.wedge()`) creates a Path with three uninitialized vertex positions. (The first one and the last two.)

As you would expect - sometimes this leads to nasty drawing artifacts!

I've tried zeroing the entire array, and a couple of ways to just zero the offending vertices, but they all have equal performance, so I've gone with zeroing the entire array. It has the simplest, cleanest code, and will be more robust to future changes.