Created
August 28, 2013 13:59
-
-
Save marcelcaraciolo/6366357 to your computer and use it in GitHub Desktop.
Sample example of tagging labels each point on ScatterPlot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
y=[2.56422, 3.77284,3.52623,3.51468,3.02199] | |
z=[0.15, 0.3, 0.45, 0.6, 0.75] | |
n=[58,651,393,203,123] | |
fig, ax = plt.subplots() | |
ax.scatter(z, y) | |
for i, txt in enumerate(n): | |
ax.annotate(txt, (z[i],y[i])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment