8000 Rollback constrained_layout not working under ZOOM/PAN · matplotlib/matplotlib@0ab9951 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ab9951

Browse files
committed
Rollback constrained_layout not working under ZOOM/PAN
1 parent 152571f commit 0ab9951

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
145145
146146
'''
147147

148-
try:
149-
if fig.canvas.toolbar._active in ('PAN', 'ZOOM'):
150-
# don't do constrained layout during zoom and pan.
151-
return
152-
except AttributeError:
153-
# not toolbar, or no _active attribute..
154-
pass
155-
156148
invTransFig = fig.transFigure.inverted().transform_bbox
157149

158150
# list of unique gridspecs that contain child axes:

0 commit comments

Comments
 (0)
0