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 ba00a41

Browse filesBrowse files
committed
Only skip draw_idle if interactive is off
1 parent eed65fd commit ba00a41
Copy full SHA for ba00a41

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,9 @@ def draw_idle(self, *args, **kwargs):
20212021
"""
20222022
:meth:`draw` only if idle; defaults to draw but backends can overrride
20232023
"""
2024-
pass
2024+
if is_interactive() and not self._is_idle_drawing:
2025+
with self._idle_draw_cntx():
2026+
self.draw(*args, **kwargs)
20252027

20262028
def draw_cursor(self, event):
20272029
"""

0 commit comments

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