Plotter.bounds#
- property Plotter.bounds: BoundsTuple[source]#
Return the bounds of all VISIBLE actors present in the active rendering window.
Actors with
visibilitydisabled or withuse_boundsdisabled 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:
BoundsTupleBounds of all visible actors in the active renderer.
See also
compute_boundsCompute the bounds with options to enable or disable actor visibility.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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)