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.
1 parent b160322 commit 01afbdaCopy full SHA for 01afbda
1 file changed
lib/matplotlib/widgets.py
@@ -212,13 +212,9 @@ def _release(self, event):
212
def _motion(self, event):
213
if self.ignore(event):
214
return
215
- if event.inaxes == self.ax:
216
- c = self.hovercolor
217
- else:
218
- c = self.color
219
- if c != self._lastcolor:
+ c = self.hovercolor if event.inaxes == self.ax else self.color
+ if c != self.ax.get_facecolor():
220
self.ax.set_facecolor(c)
221
- self._lastcolor = c
222
if self.drawon:
223
self.ax.figure.canvas.draw()
224
0 commit comments