Pistol Pete
Pistol Pete

Reputation: 1077

Label individual points in Sage plot

This seems like a straightforward problem, yet I can't find a solution. In Sage, I've got about 30 sorted points for a scatter_plot, and I want to add the order position as a label. I know this is easy if I were working with a graph object, since I could use the vertex_labels option in plot. Is there a simple fix to get this to work for a scatter_plot, or would I need to do something like make the points vertices and keep track of the exact location of each point

Upvotes: 1

Views: 629

Answers (1)

kcrisman
kcrisman

Reputation: 4402

Currently, you may have to use matplotlib directly or mess around with that method inside of Sage to get this. See here or here for some related questions.

I've opened Trac 20583 for this.

Upvotes: 1

Related Questions