pyvista.DataSet.arrows#

property DataSet.arrows: PolyData | None[source]#

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 as pv
>>> mesh = pv.Cube()
>>> 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-DataSet-arrows-1_00_00.png