# Examples from pyvista.Plotter.add_orientation_widget
# ====================================================

# Use an Arrow as the orientation widget.
import pyvista as pv
pl = pv.Plotter()
actor = pl.add_mesh(pv.Cube(), show_edges=True)
widget = pl.add_orientation_widget(pv.Arrow(), color='r')
pl.show()

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

