I was trying to plot a few velocity vectors measured at given points. However I am unable to do this with ListVectorPlot[]
function. I get error each time I try to use it (it says: VisualizationCoreListVectorPlot::vfldata: {{{1,1},{2,2}}}
is not a valid vector field dataset or a valid list of datasets.). Finally I succeeded using Arrow[]
graphics entity, but I'd rather use ListVectorPlot[]
function.
Lets say I have three
points={{1,1},{2,1},{3,1}}
and 2D vectors measured in that points:
vec={{1,0},{0.7,0.1},{1,-0.1}}
How to prepare data to plot this using ListVectorPlot to get such an image:
Code used to plot arrows:
ar = {
Graphics[Arrow[{{1, 1}, {1 + 1, 1 + 0}}]],
Graphics[Arrow[{{2, 1}, {2 + 0.7, 1 + 0.1}}]],
Graphics[Arrow[{{3, 1}, {3 + 1, 1 - 0.1}}]]
};
Show[ar]