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

Skip to content

Commit 9cbb29d

Browse files
committed
Fix typo in warning message.
A slash was missing between "and" and "or". Also reworded the thing a bit.
1 parent 7d0cb13 commit 9cbb29d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,11 +2431,10 @@ def subplots_adjust(self, left=None, bottom=None, right=None, top=None,
24312431
"""
24322432
if self.get_constrained_layout():
24332433
self.set_constrained_layout(False)
2434-
cbook._warn_external("This figure was using "
2435-
"constrained_layout==True, but that is "
2436-
"incompatible with subplots_adjust and or "
2437-
"tight_layout: setting "
2438-
"constrained_layout==False. ")
2434+
cbook._warn_external(
2435+
"This figure was using constrained_layout, but that is "
2436+
"incompatible with subplots_adjust and/or tight_layout; "
2437+
"disabling constrained_layout.")
24392438
self.subplotpars.update(left, bottom, right, top, wspace, hspace)
24402439
for ax in self.axes:
24412440
if isinstance(ax, SubplotBase):

0 commit comments

Comments
 (0)