I have some data that I want to plot on a scatter chart, and display the associated label for each point. The data looks like
xlist=[1,2,3,4]
ylist=[2,3,4,5]
labels=['a', 'b', 'c', 'd']
I can plot using Seaborn and tried to use mplcursor, but the displayed labels are the x and y instead of labels.
sns.scatterplot(x, y)
mplcursors.cursor(hover=True)
How can I make it display the labels, instead of (x, y)
?