I am trying to make a scatter plot and annotate data points with different numbers from a list. So, for example, I want to plot y vs x and annotate
y
x
Python 3.6+:
coordinates = [('a',1,2), ('b',3,4), ('c',5,6)] for x in coordinates: plt.annotate(x[0], (x[1], x[2]))