I want to label every dot I plot in python, and I didn't find a proper way to do it.
Assuming I have two lists of n
elements called a
and b
, I print them this way :
plt.figure()
plt.grid()
plt.plot(a , b , 'bo')
plt.show()
I want to label every point with "Variable k" with k
ranging from 1
to n
obviously.
Thanks for your time