This seemingly simple problem is giving me some trouble. I need to plot a vector field on a line, and for that I'm following what I found here. I try to create a mesh that contains two points and just plot vectors on it:
\[ScriptCapitalD] = MeshRegion[{{0, 1}, {1, 1}}, Line[{1, 2}]];
VectorPlot[{Sin[x], Cos[y]}, {x, y} \[Element] \[ScriptCapitalD]]
But I get the following error:
VectorPlot::idomdim: does not have a valid dimension as a plotting domain. >>
What's wrong with this approach?


