Annotate on hover

When hover is set to True, annotations are displayed when the mouse hovers over the artist, without the need for clicking.

Mouse over a point
import matplotlib.pyplot as plt
import numpy as np
import mplcursors

fig, ax = plt.subplots()
ax.scatter(*np.random.random((2, 26)))
ax.set_title("Mouse over a point")


Gallery generated by Sphinx-Gallery