Plotter.generate_orbital_path#
- Plotter.generate_orbital_path( ) PolyData[source]#
Generate an orbital path around the data scene.
- Parameters:
- Returns:
pyvista.PolyDataPolyData containing the orbital path.
Examples#
Download Python source code | Download Jupyter notebook
Generate an orbital path around a sphere.
>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(pv.Sphere())
>>> viewup = [0, 0, 1]
>>> orbit = pl.generate_orbital_path(
... factor=2.0, n_points=50, shift=0.0, viewup=viewup
... )
See Orbiting for a full example using this method.