FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix: Optimize Cursor clearing on mouse exit to prevent lag by MohitPal2005 · Pull Request #31426 · matplotlib/matplotlib · GitHub

Repository navigation

7 changes: 6 additions & 1 deletion lib/matplotlib/widgets.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL