pyvista.plotting.themes._CameraConfig#

class _CameraConfig[source]#

PyVista camera configuration.

Examples

Set global camera parameters.

>>> import pyvista as pv
>>> pv.global_theme.camera.position = [1.0, 1.0, 1.0]
>>> pv.global_theme.camera.viewup = [0.0, 0.0, 1.0]

Methods

Attributes

_CameraConfig.parallel_projection

Return or set parallel projection mode.

_CameraConfig.parallel_scale

Return or set parallel scale.

_CameraConfig.position

Return or set the camera position.

_CameraConfig.viewup

Return or set the camera viewup.