pyvista.Plotter.bounds_size

pyvista.Plotter.bounds_size#

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

Return the size of each axis of the object’s bounding box.

Added in version 0.46.

Returns:
tuple[float, float, float]

Size of each x-y-z axis.

Examples

Get the size of a cube. The cube has edge lengths af (1.0, 1.0, 1.0) by default.

>>> import pyvista as pv
>>> mesh = pv.Cube()
>>> mesh.bounds_size
(1.0, 1.0, 1.0)