Thanks to visit codestin.com Credit goes to github.com
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 2b906ee commit aeb1ac7Copy full SHA for aeb1ac7
lib/matplotlib/patches.py
@@ -579,7 +579,7 @@ def _update_patch_transform(self):
579
height = self.convert_yunits(self._height)
580
bbox = transforms.Bbox.from_bounds(x, y, width, height)
581
rot_trans = transforms.Affine2D()
582
- rot_trans.translate(-x, -y).rotate_deg(self._angle).translate(x, y)
+ rot_trans.rotate_deg_around(x, y, self._angle)
583
self._rect_transform = transforms.BboxTransformTo(bbox)
584
self._rect_transform += rot_trans
585
0 commit comments