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
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
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
This might be a stupid question, but what is the difference between a
Polygon and Patch? A Polygon is subclassed from a Patch. The only real
substantial difference I see is that a Polygon object has logic flagging
and ensuring that it has a closed ring, but does that really merit a whole
new class