Skip to content
7 changes: 6 additions & 1 deletion lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,12 @@ def onmove(self, event):
self.linev.set_visible(False)
self.lineh.set_visible(False)
if self.needclear:
self.canvas.draw()
background = self._load_blit_background()
if self.useblit and background is not None:
self.canvas.restore_region(background)
self.canvas.blit(self.ax.bbox)
else:
self.canvas.draw()
Comment thread
timhoffm marked this conversation as resolved.
self.needclear = False
return
self.needclear = True
Expand Down
Loading