We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6557c6 commit a1caf12Copy full SHA for a1caf12
lib/matplotlib/widgets.py
@@ -2172,6 +2172,11 @@ def update_background(self, event):
2172
# `release` can call a draw event even when `ignore` is True.
2173
if not self.useblit:
2174
return
2175
+ # Skip blitting if we are saving to disk or if the backend doesn’t support it
2176
+ if getattr(self.canvas, "_is_saving", False):
2177
+ return
2178
+ if not hasattr(self.canvas, "copy_from_bbox"):
2179
2180
# Make sure that widget artists don't get accidentally included in the
2181
# background, by re-rendering the background if needed (and then
2182
# re-re-rendering the canvas with the visible widget artists).
0 commit comments