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)
https://d33wubrfki0l68.cloudfront.net/5a2b5795df20301c523a894fcac95df645ef0159/56a69/_images/pyvista-prop3d-scale-1_00_00.png