Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6ebf28

Browse filesBrowse files
authored
Merge pull request #10557 from matplotlib/auto-backport-of-pr-10552
Backport PR #10552 on branch v2.2.x
2 parents 69e4e89 + 1652352 commit f6ebf28
Copy full SHA for f6ebf28

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,8 @@ def clf(self, keep_observers=False):
14251425
if not keep_observers:
14261426
self._axobservers = []
14271427
self._suptitle = None
1428+
if self.get_constrained_layout():
1429+
layoutbox.nonetree(self._layoutbox)
14281430
self.stale = True
14291431

14301432
def clear(self, keep_observers=False):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.