pyvista.Plotter.bounds

Contents

pyvista.Plotter.bounds#

property Plotter.bounds: BoundsTuple[source]#

Return the bounds of all VISIBLE actors present in the active rendering window.

Actors with visibility disabled or with use_bounds disabled are not included in the bounds.

Changed in version 0.45: Only the bounds of visible actors are now returned. Previously, the bounds of all actors was returned, regardless of visibility.

Returns:
BoundsTuple

Bounds of all visible actors in the active renderer.

See also

compute_bounds

Compute the bounds with options to enable or disable actor visibility.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(pv.Cube())
>>> pl.bounds
BoundsTuple(x_min = -0.5,
            x_max =  0.5,
            y_min = -0.5,
            y_max =  0.5,
            z_min = -0.5,
            z_max =  0.5)