10000 FIX: add apply_aspect back to _base draw · matplotlib/matplotlib@b764116 · GitHub
[go: up one dir, main page]

Skip to content

Commit b764116

Browse files
committed
FIX: add apply_aspect back to _base draw
1 parent f1e3742 commit b764116

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
@@ -2543,6 +2543,12 @@ def draw(self, renderer=None, inframe=False):
25432543

25442544
# prevent triggering call backs during the draw process
25452545
self._stale = True
2546+
locator = self.get_axes_locator()
2547+
if locator:
2548+
pos = locator(self, renderer)
2549+
self.apply_aspect(pos)
2550+
else:
2551+
self.apply_aspect()
25462552

25472553
artists = self.get_children()
25482554
artists.remove(self.patch)

0 commit comments

Comments
 (0)
0