8000 logic · matplotlib/matplotlib@8c8369a · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c8369a

Browse files
committed
logic
1 parent 0fb4757 commit 8c8369a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,9 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
177177
# do layout for suptitle.
178178
suptitle = fig._suptitle
179179
print(suptitle)
180-
do_suptitle = (suptitle is None or
181-
suptitle._layoutbox is None or
182-
not suptitle.get_in_layout())
183-
do_suptitle = not do_suptitle
180+
do_suptitle = (suptitle is not None and
181+
suptitle._layoutbox is not None and
182+
suptitle.get_in_layout())
184183
if do_suptitle:
185184
suptitle = fig._suptitle
186185
bbox = invTransFig(

0 commit comments

Comments
 (0)
0