pyvista.Camera.position

Contents

pyvista.Camera.position#

property Camera.position[source]#

Return or set the position of the camera in world coordinates.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> pl.camera.position
(1.0, 1.0, 1.0)
>>> pl.camera.position = (2.0, 1.0, 1.0)
>>> pl.camera.position
(2.0, 1.0, 1.0)
../../../_images/pyvista-Camera-position-1_00_00.png