I’m experimenting with mplcursors for the first time. I’d like to have an annotation appear when hovering over areas of a bar graph and disappear again when I leave that area.
Currently, I can only get the annotation to appear when over the bar but not disappear when no longer over it (without manual action or hover over another bar). I’d like it to automatically disappear.
I’m currently using this code as my basis to experiment with:
Can anyone point me in the right direction?