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

Skip to content

Commit 199ce12

Browse files
committed
FIX: add apply_aspect back to _base draw
1 parent 59474bb commit 199ce12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,6 +2562,12 @@ def draw(self, renderer=None, inframe=False):
25622562

25632563
# prevent triggering call backs during the draw process
25642564
self._stale = True
2565+
locator = self.get_axes_locator()
2566+
if locator:
2567+
pos = locator(self, renderer)
2568+
self.apply_aspect(pos)
2569+
else:
2570+
self.apply_aspect()
25652571

25662572
artists = self.get_children()
25672573
artists.remove(self.patch)

0 commit comments

Comments
 (0)