pyvista.Prop3D.scale

Contents

pyvista.Prop3D.scale#

property Prop3D.scale: tuple[float, float, float][source]#

Return or set entity scale.

Examples

Create an actor using the pyvista.Plotter and then change the scale of the actor.

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Sphere())
>>> actor.scale = (2.0, 2.0, 2.0)
>>> actor.scale
(2.0, 2.0, 2.0)
../../../_images/pyvista-Prop3D-scale-1_00_00.png