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 fbd4764

Browse filesBrowse files
authored
Added keep_observers to clf() synonym clear()
fixes #8620
1 parent f107207 commit fbd4764
Copy full SHA for fbd4764

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,11 +1209,11 @@ def clf(self, keep_observers=False):
12091209
self._suptitle = None
12101210
self.stale = True
12111211

1212-
def clear(self):
1212+
def clear(self, keep_observers=False):
12131213
"""
12141214
Clear the figure -- synonym for :meth:`clf`.
12151215
"""
1216-
self.clf()
1216+
self.clf(keep_observers=keep_observers)
12171217

12181218
@allow_rasterization
12191219
def draw(self, renderer):

0 commit comments

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