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 edb5868

Browse filesBrowse files
committed
keep the old buffer so we can return something when get_diff_image is called while self._png_is_old
1 parent 740ce99 commit edb5868
Copy full SHA for edb5868

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/backends/backend_webagg_core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_webagg_core.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def get_diff_image(self):
236236
self._last_renderer, renderer)
237237
self._force_full = False
238238
self._png_is_old = False
239-
240-
return buff
239+
self.buff = buff
240+
return self.buff
241241

242242
def get_renderer(self, cleared=None):
243243
# Mirrors super.get_renderer, but caches the old one

0 commit comments

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