# Examples from pyvista.Plotter.add_arrows
# ========================================

# Plot a random field of vectors and save a screenshot of it.
import numpy as np
import pyvista as pv
rng = np.random.default_rng(seed=0)
cent = rng.random((10, 3))
direction = rng.random((10, 3))
pl = pv.Plotter()
_ = pl.add_arrows(cent, direction, mag=2)
pl.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

