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

Skip to content

Commit cf1999a

Browse files
committed
FIX: add apply_aspect back to _base draw
1 parent 69fd1fc commit cf1999a

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

25542554
# prevent triggering call backs during the draw process
25552555
self._stale = True
2556+
locator = self.get_axes_locator()
2557+
if locator:
2558+
pos = locator(self, renderer)
2559+
self.apply_aspect(pos)
2560+
else:
2561+
self.apply_aspect()
25562562

25572563
artists = self.get_children()
25582564
artists.remove(self.patch)

0 commit comments

Comments
 (0)
0