We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d195747 commit 6f49939Copy full SHA for 6f49939
lib/matplotlib/patches.py
@@ -799,6 +799,10 @@ def get_height(self):
799
"""Return the height of the rectangle."""
800
return self._height
801
802
+ def get_angle(self):
803
+ """Get the rotation angle in degrees."""
804
+ return self.angle
805
+
806
def set_x(self, x):
807
"""Set the left coordinate of the rectangle."""
808
self._x0 = x
@@ -809,6 +813,15 @@ def set_y(self, y):
809
813
self._y0 = y
810
814
self.stale = True
811
815
816
+ def set_angle(self, angle):
817
+ """
818
+ Set the rotation angle in degrees.
819
820
+ The rotation is performed anti-clockwise around *xy*.
821
822
+ self.angle = angle
823
+ self.stale = True
824
812
825
def set_xy(self, xy):
826
"""
827
Set the left and bottom coordinates of the rectangle.
0 commit comments