Message Boards Message Boards

0
|
25742 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Labeling points in a plot

Posted 10 years ago
Hello!
How can I label specific points in a ListPlot? I'm trying to find what I need in the Help Center but am unsuccessful so far.
I have to plot a few points and label them ABCDE. Also, I want to draw two vectors and label them as well.
I'm new to Mathematica and still have some difficulties understanding how things work, especially the visualization part. Right now I'm studying algebra at the university and have to write a paper.
POSTED BY: Victor Sago
2 Replies
Posted 10 years ago
Thank you! This is exactly what I have been struggling with whole afternoon! I've found Arrow primitive earlier, but labeling things has been a challenge. I've tried PlotLabel, PlotLegend and other similar directives, but somehow I missed Text primitive. So thanks for that!
POSTED BY: Victor Sago
Posted 10 years ago
v = {1, 2, 5, 7, 4};
Show[
ListPlot[v, PlotRange -> {{0, 6}, {0, 7}}],
Graphics[Text["A", {1, 1}, {0, -1}]],
Graphics[Text["B", {2, 2}, {0, -1}]],
Graphics[Arrow[{{0, 0}, {2, 6}}]],
Graphics[Text["V1", {1, 3}, {0, -2}]]
]
Study the help page for each of those functions used and be sure to click on Details and Options on each of those pages.
POSTED BY: Bill Simpson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract