zoom

Camera.zoom(value)

Set the zoom of the camera.

In perspective mode, decrease the view angle by the specified factor.

In parallel mode, decrease the parallel scale by the specified factor. A value greater than 1 is a zoom-in, a value less than 1 is a zoom-out.

Parameters
valuefloat

Zoom of the camera. Must be greater than 0.

Examples

>>> import pyvista
>>> pl = pyvista.Plotter()
>>> pl.camera.zoom(2.0)
../../../_images/pyvista-Camera-zoom-1_00_00.png