8000 Merge pull request #18634 from anntzer/typo · matplotlib/matplotlib@f905e64 · GitHub
[go: up one dir, main page]

Skip to content

Commit f905e64

Browse files
authored
Merge pull request #18634 from anntzer/typo
DOC: Fix typo in warning message.
2 parents a66501d + 9cbb29d commit f905e64

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)
0