Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,11 @@ def update_background(self, event):
# `release` can call a draw event even when `ignore` is True.
if not self.useblit:
return
# Skip blitting if we are saving to disk or if the backend doesn’t support it
if getattr(self.canvas, "_is_saving", False):
return
Comment thread
AasmaGupta marked this conversation as resolved.
Outdated
if not hasattr(self.canvas, "copy_from_bbox"):
return
Comment thread
AasmaGupta marked this conversation as resolved.
Outdated
# Make sure that widget artists don't get accidentally included in the
# background, by re-rendering the background if needed (and then
# re-re-rendering the canvas with the visible widget artists).
Expand Down
Loading