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 9b48fd8

Browse filesBrowse files
authored
Merge pull request matplotlib#10552 from jklymak/fix-cl-with-clf
FIX: issue with clf not clearing constrainedlayout
2 parents 9fd49f2 + 755aadd commit 9b48fd8
Copy full SHA for 9b48fd8

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.