Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 717d1fa + 01afbda commit f6b8891Copy full SHA for f6b8891
1 file changed
lib/matplotlib/widgets.py
@@ -210,13 +210,9 @@ def _release(self, event):
210
def _motion(self, event):
211
if self.ignore(event):
212
return
213
- if event.inaxes == self.ax:
214
- c = self.hovercolor
215
- else:
216
- c = self.color
217
- if c != self._lastcolor:
+ c = self.hovercolor if event.inaxes == self.ax else self.color
+ if c != self.ax.get_facecolor():
218
self.ax.set_facecolor(c)
219
- self._lastcolor = c
220
if self.drawon:
221
self.ax.figure.canvas.draw()
222
0 commit comments