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 1652352

Browse filesBrowse files
tacaswellMeeseeksDev[bot]
authored andcommitted
Backport PR #10552: Fix issue with clf not clearing constrainedlayout
1 parent 69e4e89 commit 1652352
Copy full SHA for 1652352

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.