quiver
- m3sh.vis.quiver(points, vectors, size=1.0, radius=0.025, resolution=6, color=(0.5961, 0.9843, 0.5961))[source]
Quiver plot.
Display arrows at given locations pointing in given directions. For each point exactly one direction vector has to be given.
- Parameters:
points (array_like, shape (k, 3)) – Point coordinates.
vectors (array_like, shape (k, 3)) – Vector coordinates.
size (float, optional) – Global scale factor.
radius (float, optional) – Unscaled radius of arrow shaft.
resolution (int, optional) – Discretization detail level.
color (array_like, optional) – Color specification.
- Returns:
Vector field prop.
- Return type:
The glyph used to model arrows has unit length. The radius argument is an absolute value applied to this glyph. The size argument is a global scale factor applied to the glyph. It scales its length and radius. The detail level of the glyph (how many vertices are used to discretize a circle) can be set via the resolution argument.
Note
If array_like parameters are of type
ndarray
their data buffer is shared with VTK’s data objects (use copies to decouple storage).