Skip to content

Commit 5f446ee

Browse files
Fixed typo in _constrained_layout.py (matplotlib#20782)
In https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/_constrained_layout.py#L304 if fig._supylabel is not None and fig._supxlabel.get_in_layout(): should be if fig._supylabel is not None and fig._supylabel.get_in_layout():
1 parent a0e93a3 commit 5f446ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _make_margin_suptitles(fig, renderer, *, w_pad=0, h_pad=0):
301301
bbox = inv_trans_fig(fig._supxlabel.get_tightbbox(renderer))
302302
fig._layoutgrid.edit_margin_min('bottom', bbox.height + 2 * h_pad)
303303

304-
if fig._supylabel is not None and fig._supxlabel.get_in_layout():
304+
if fig._supylabel is not None and fig._supylabel.get_in_layout():
305305
p = fig._supylabel.get_position()
306306
if getattr(fig._supylabel, '_autopos', False):
307307
fig._supylabel.set_position((w_pad_local, p[1]))

0 commit comments

Comments
 (0)