0
$\begingroup$

This question already has an answer here:

I want to draw vectors just with one plot. Also, I want to label the axes. Can anybody show me how can I do it?

$\endgroup$

marked as duplicate by m_goldberg, Henrik Schumacher, xzczd, Coolwater, SquareOne Oct 30 '18 at 22:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
$\begingroup$

For 2D:

Graphics[Arrow /@ {{{0, 0}, {1, 1}}, {{0, 0}, {2, 1}}},
 Axes -> True,
 AxesLabel -> {"x", "y"}]

For 3D:

Graphics3D[Arrow /@ {{{0, 0, 0}, {1, 1, 1}}, {{0, 0, 0}, {2, 1, 5}}},
 Axes -> True,
 AxesLabel -> {"x", "y", "z"}]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.