Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to plot vectors in mathematica, some 2d and some 3d.

Is there a way to do this?

I Need the coordinate axes and an arrow head on a line basically.

Thanks, Blake

share|cite|improve this question
up vote 15 down vote accepted

Here are some examples that I think are self-explanatory:

Graphics[{Arrow[{{0, 0}, {1, 1}}], Arrow[{{0, 0}, {-1, 1}}]}, Axes -> True]

Graphics3D[{Arrow[{{0, 0, 0}, {1, 1, 1}}], Arrow[{{0, 0, 0}, {-1, 1, -1}}]}, Axes -> True, Boxed -> False]
share|cite|improve this answer

You should look at these built in plots:

StreamPlot and ListStreamPlot

StreamPlot[{-1 - x^2 + y, 1 + x - y^2}, {x, -3, 3}, {y, -3, 3}]

enter image description here

StreamDensityPlot and ListStreamDensityPlot

enter image description here

VectorPlot and ListVectorPlot

enter image description here

VectorPlot3D and ListVectorPlot3D

enter image description here

share|cite|improve this answer
Those are great and all, but I'd rarely use them. I need a good way to plot the columns of a matrix. – Travis Bemrose Jul 5 at 21:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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