0

I have the following code. The Button widget is not responding to hover event. What am I doing wrong?

from matplotlib import pyplot as plot
from matplotlib.widgets import Button

plot.plot([1,2,3], [1,2,3])
ax = plot.axes([0.5, 0.5, 0.05, 0.05])
Button(ax, "A", hovercolor="red")

plot.show()
Dinesh
  • 1,825
  • 5
  • 31
  • 40
  • what response do you expect? When I run it on my LInux then it changes color on hover. – furas Jun 21 '21 at 14:23
  • I am running on Windows and the color is not getting changed when I move the mouse over it – Dinesh Jun 22 '21 at 08:45
  • code works for me on Linux. On different systems `matplotlib` may use different GUI framework or system widgets and this may not work on some systems. – furas Jun 23 '21 at 13:24

0 Answers0