Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 28, 2021 07:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/5d43ac47355f3f4f4457bc92eb32db99 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
x = [3, 5, 7, 8, 4]
y = [5, 3, 7, 8, 2]
labels = ["Jan", "Feb", "Mar", "April", "May"]
plt.scatter(x, y)
for i, j in enumerate(labels):
plt.annotate(j, (x[i]+0.10, y[i]), fontsize=10)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment