arrows

property RectilinearGrid.arrows: Optional[pyvista.core.pointset.PolyData]

Return a glyph representation of the active vector data as arrows.

Arrows will be located at the points of the mesh and their size will be dependent on the norm of the vector. Their direction will be the “direction” of the vector

Returns
pyvista.PolyData

Active vectors represented as arrows.

Examples

Create a mesh, compute the normals and set them active, and plot the active vectors.

>>> import pyvista
>>> mesh = pyvista.Cube().clean()
>>> mesh_w_normals = mesh.compute_normals()
>>> mesh_w_normals.active_vectors_name = 'Normals'
>>> arrows = mesh_w_normals.arrows
>>> arrows.plot(show_scalar_bar=False)
../../../_images/pyvista-RectilinearGrid-arrows-1_00_00.png