I would like to draw "Velocity field" or "Vector Field" like:
I have tried using PGFplots "quiver" but this only works for vector fields on SURFACES:
\begin{tikzpicture}
\begin{axis}[
domain=0:1,
xmax=1,
ymax=1,
]
\addplot3[cyan,/pgfplots/quiver,
quiver/u=y,
quiver/v=z,
quiver/w=x,
quiver/scale arrows=0.1,
-stealth,samples=10] ({x},{y},{x+y});
\end{axis}
\end{tikzpicture}
Is there a mechanism for drawing vectors on a 3D LATTICE? Something which does
for i from 1 to 10
for j from 1 to 10
for k from 1 to 10
draw vector (i,j,k) -- f(i,j,k);
end do;
end do;
end do;
in PGFplots or Tikz? (As done here: 3D Vector Fields in Asymptote )