# Examples from pyvista.RenderWindowInteractor.enable_trackball_style
# ===================================================================

# Create a simple scene with a plotter that has the Trackball
# Camera interactive style (which is also the default):
import pyvista as pv
pl = pv.Plotter()
_ = pl.add_mesh(pv.Cube(center=(1, 0, 0)))
_ = pl.add_mesh(pv.Cube(center=(0, 1, 0)))
pl.show_axes()
pl.enable_trackball_style()
pl.show()

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

