Re: [matplotlib-devel] Polygon vs. Patch

2014-08-04 Thread Stefan H.
I do see a clear-cut difference. A Patch is a two-dimensional region characterized by a boundary and an interior region, which may have colors, line/hatch styles, etc. Also, a Patch has an algorithms to compute an area, a circumference, decide whether a point lies inside or outside the Patch, to cu

Re: [matplotlib-devel] Polygon vs. Patch

2014-08-04 Thread Benjamin Root
Since Polygon subclasses Patch, wouldn't that mean that a Polygon could be made out of splines or Bezier curves? I fail to see the "inherent barrier" for Polygons and Patches to be the same thing. I am not claiming that they are identical now, I just don't see why a Polygon's functionality needs to

Re: [matplotlib-devel] Polygon vs. Patch

2014-08-03 Thread Stefan H.
No, a Patch is not automatically a Polygon. You could make a Patch out of splines or Bezier curves, for example. Cheers, Stefan -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Polygon-vs-Patch-tp43743p43746.html Sent from the matplotlib - devel mailing list archive at