pyvista.Plotter.center

Contents

pyvista.Plotter.center#

property Plotter.center: tuple[float, float, float][source]#

Return the center of the active renderer.

Returns:
tuple[float, float, float]

Center of the active renderer.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(pv.Cube())
>>> pl.center
(0.0, 0.0, 0.0)
../../../_images/pyvista-Plotter-center-1_00_00.png