I am trying to plot a 3D vector field with VectorPlot3D
but I want it only evaluated across the $xy$-plane. I.e. I want the vectors in 3-space pointing out of the $xy$-plane, but I only want one "layer" of them vertically (where $z = 0$). But when I specify VectorPoints -> {8, 8, 1}
as an option to VectorPlot3D it throws an error Value of option PlotPoints -> {8,8,1} is not an integer >= 2
.
Here is an example of what I am trying to achieve:
I hacked this together by ploting it with a large $z$ range and PlotPoints -> {8,8,3}
, then photoshopping out the top and bottom layers of vectors. But this is really klunky and annoying as I have several of these to do.
This minimum bound of 2 for the evaluation point resolution seems pretty arbitrary and weird, not to mention really annoying for my purposes. Is there any way I can achieve what I am attempting to?
VectorPoints
seems to work. You could also try usingPlotRange
to trim out the unwanted vectors in the z direction. $\endgroup$VectorPoints -> {8, 8, 1}
as an option toVectorPlot3D
, and it will complain the value isn't >= 2. $\endgroup$