matplotlib/matplotlib — pull request #1846 by mdboom (2013-03-22 16:02:59+00:00)
Title: Fix the clippath renderering so that it uses no-clip unsigned chars

This was discovered during the discussion in the e-mail thread "removing paths inside polygon".

When paths are affected by a clip path, the scanline type being used for rendering was wrong. It was `grey8`, but should be `no_clip_grey8`. This resulted in horizontal lines looking thicker than they should.

This also fixes a related performance bug where the buffer for the alpha mask was over-allocated by a factor of 4.