Skip to content

Commit 31e851a

Browse files
authored
Merge pull request #9933 from dstansby/rect-patch
Fix Rectange.get_bbox()
2 parents aad9759 + e11caff commit 31e851a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/patches.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,7 @@ def set_bounds(self, *args):
798798

799799
def get_bbox(self):
800800
x0, y0, x1, y1 = self._convert_units()
801-
return transforms.Bbox.from_extents(self._x0, self._y0,
802-
self._x1, self._y1)
801+
return transforms.Bbox.from_extents(x0, y0, x1, y1)
803802

804803
xy = property(get_xy, set_xy)
805804

0 commit comments

Comments
 (0)