Fix auto-closing in PolyCollection

As reported by @WeatherGod, the auto-closing code in PolyCollection always closes back to (0, 0) rather than the original point.  Big problem.  I guess most of our polys were origined at (0, 0) which is why we never noticed this.
Yeah, it should be part of the mplot3d tests because mplot3d is optional.


On Sat, Jul 12, 2014 at 5:45 PM, Phil Elson <notifications@github.com>
wrote:

> In lib/matplotlib/tests/test_collections.py:
>
> > @@ -475,6 +475,44 @@ def test_EllipseCollection():
> >      ax.autoscale_view()
> >
> >
> > +@image_comparison(baseline_images=['polycollection_close'],
> > +                  extensions=['png'], remove_text=True)
> > +def test_polycollection_close():
> > +    from mpl_toolkits.mplot3d import Axes3D
>
> I'm surprised that this isn't part of the mpl3d test, rather than the
> collection tests...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/matplotlib/matplotlib/pull/3239/files#r14855507>.
>