pyvista.Camera.distance#

property Camera.distance[source]#

Return or set the distance of the focal point from the camera.

Notes

Setting the distance keeps the camera fixed and moves the focal point.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> pl.camera.distance
1.73205
>>> pl.camera.distance = 2.0
>>> pl.camera.distance
2.0
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/12b6f/_images/pyvista-camera-distance-1_00_00.png