Skip to content

Commit e8eac49

Browse files
AasmaGuptameeseeksmachine
authored andcommitted
Backport PR matplotlib#30490: Fix SVG rendering error in def update_background
1 parent 692a9fb commit e8eac49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,6 +2157,8 @@ def update_background(self, event):
21572157
# `release` can call a draw event even when `ignore` is True.
21582158
if not self.useblit:
21592159
return
2160+
if self.canvas.is_saving():
2161+
return # saving does not use blitting
21602162
# Make sure that widget artists don't get accidentally included in the
21612163
# background, by re-rendering the background if needed (and then
21622164
# re-re-rendering the canvas with the visible widget artists).

0 commit comments

Comments
 (0)