How to plot vectors in Mathematica
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
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]
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}]
StreamDensityPlot and ListStreamDensityPlot
VectorPlot and ListVectorPlot
VectorPlot3D and ListVectorPlot3D