MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / rotated

Method rotated

lib/matplotlib/transforms.py:654–663  ·  view source on GitHub ↗

Return the axes-aligned bounding box that bounds the result of rotating this `Bbox` by an angle of *radians*.

(self, radians)

Source from the content-addressed store, hash-verified

652 return np.array([[x0, y0], [x0, y1], [x1, y0], [x1, y1]])
653
654 def rotated(self, radians):
655 """
656 Return the axes-aligned bounding box that bounds the result of rotating
657 this `Bbox` by an angle of *radians*.
658 """
659 corners = self.corners()
660 corners_rotated = Affine2D().rotate(radians).transform(corners)
661 bbox = Bbox.unit()
662 bbox.update_from_data_xy(corners_rotated, ignore=True)
663 return bbox
664
665 @staticmethod
666 def union(bboxes):

Callers 1

test_marker_rotatedFunction · 0.45

Calls 6

cornersMethod · 0.95
Affine2DClass · 0.85
unitMethod · 0.80
update_from_data_xyMethod · 0.80
transformMethod · 0.45
rotateMethod · 0.45

Tested by 1

test_marker_rotatedFunction · 0.36