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

Skip to content

Commit 4f17959

Browse files
committed
FIX: add apply_aspect back to _base draw
1 parent f120164 commit 4f17959

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,12 @@ def draw(self, renderer=None, inframe=False):
25422542

25432543
# prevent triggering call backs during the draw process
25442544
self._stale = True
2545-
2545+
locator = self.get_axes_locator()
2546+
if locator:
2547+
pos = locator(self, renderer)
2548+
self.apply_aspect(pos)
2549+
else:
2550+
self.apply_aspect()
25462551
artists = self.get_children()
25472552
artists.remove(self.patch)
25482553

0 commit comments

Comments
 (0)