@@ -877,6 +877,14 @@ def get_corners(self):
877
877
return self .get_patch_transform ().transform (
878
878
[(0 , 0 ), (1 , 0 ), (1 , 1 ), (0 , 1 )])
879
879
880
+ def _get_edge_midpoints (self ):
881
+ """
882
+ Return the edge midpoints of the rectangle, moving anti-clockwise from
883
+ the centre of the left-hand edge.
884
+ """
885
+ return self .get_patch_transform ().transform (
886
+ [(0 , 0.5 ), (0.5 , 0 ), (1 , 0.5 ), (0.5 , 1 )])
887
+
880
888
def get_center (self ):
881
889
"""Return the centre of the rectangle."""
882
890
return self .get_patch_transform ().transform ((0.5 , 0.5 ))
@@ -1794,6 +1802,14 @@ def get_co_vertices(self):
1794
1802
ret = self .get_patch_transform ().transform ([(0 , 1 ), (0 , - 1 )])
1795
1803
return [tuple (x ) for x in ret ]
1796
1804
1805
+ def _get_edge_midpoints (self ):
1806
+ """
1807
+ Return the edge midpoints of the ellipse, moving anti-clockwise from
1808
+ the centre of the left-hand edge.
1809
+ """
1810
+ return self .get_patch_transform ().transform (
1811
+ [(0 , 0.5 ), (0.5 , 0 ), (1 , 0.5 ), (0.5 , 1 )])
1812
+
1797
1813
1798
1814
class Annulus (Patch ):
1799
1815
"""
0 commit comments