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

Skip to content

Commit bf98993

Browse files
committed
Rollback constrained_layout not working under ZOOM/PAN
1 parent ae9f8e5 commit bf98993

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)