Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e11caff

Browse files
committed
Fix Rectange.get_bbox()
1 parent 2f28286 commit e11caff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/patches.py

Lines changed: 1 addition & 2 deletions
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)