Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9b48fd8

Browse files
authored
Merge pull request#10552 from jklymak/fix-cl-with-clf
FIX: issue with clf not clearing constrainedlayout
2 parents9fd49f2 +755aadd commit9b48fd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lib/matplotlib/figure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,8 @@ def clf(self, keep_observers=False):
14251425
ifnotkeep_observers:
14261426
self._axobservers= []
14271427
self._suptitle=None
1428+
ifself.get_constrained_layout():
1429+
layoutbox.nonetree(self._layoutbox)
14281430
self.stale=True
14291431

14301432
defclear(self,keep_observers=False):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp