How do I plot several (milions) of Arrows?

You see, that’s so confusing. Why does it have to be so complicated? I highly regret never learning Mathematica.
Now that this is clear, I have no idea how to correct my data in Mathematica :confused:

Table[vec, {x, 0, 1, 1}, {y, 0, 1, 1}, {z, 0, 1, 1}]

What are those x,y,z? Is that {x, x_min, x_max, step} ? If yes, ok, But how do I create the same table with the data I already have? :frowning:

I copied the second data structure shown in the attachment and I added one additional tuplet of vectors to replace the ellipsis. I replaced the symbols with numbers, getting

{{{1, 2, 3}, {4, 5, 6}}, {{1, 2, 3}, {3, 2, 4}}, {{1, 2, 3}, {7, 2, 5}}}

When I applied ListVectorPlot3D to this I got the error message

“… {{{1.,2.,3.},{4.,5.,6.}},{{1.,2.,3.},{3.,2.,4.}},{{1.,2.,3.},{7.,2.,5.}}} is not a valid vector field dataset or a valid list of datasets. “

I applied Dimensions to the data structure, getting:

 {3, 2, 3}

which appears to show three instances of two triplets each. Thus, it should plot 3 vectors. Doesn’t this show there is something either wrong or incomplete in the template from the documentation? Or are we still having a conceptual difficulty?

I am using Mathematica 10.

I think that the important point is that the vector field data needs to be given on a regular 3-D array (i.e., a completely filled in rectangular array of positions) of vector values. The documentation says:

"ListVectorPlot3D by default interpolates the data given and plots vectors for the vector field at a regular 3D grid of positions. "

So, in the case of the first example,the values of the positions are assumed and in the second example the values of the positions are specified.

Note also that in your example of

{{{1, 2, 3}, {4, 5, 6}}, {{1, 2, 3}, {3, 2, 4}}, {{1, 2, 3}, {7, 2, 5}}}

you have repeated the point {1,2,3} in each case leading to ambiguity of what the vector field value is at that point.

But the main point in all of this is that the data needs to be specified on a regular cartesian grid with no points left out.

The x, y and z are just iteration variables to construct the Table in the example for illustrative purposes..

http://reference.wolfram.com/language/ref/Table.html

I agree that the needs of the input for ListVectorPlot3D are a bit confusing. But think of needing to create a grid (a 3 dimensional array) of things, each such thing which is a vector.

“I think that the important point is that the vector field data needs to be given on a regular 3-D array (i.e., a completely filled in rectangular array of positions) of vector values.”

Ah ha.