_CameraConfig#

class _CameraConfig[source]#

PyVista camera configuration.

Examples#

Download Python source code | Download Jupyter notebook

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]

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's view-up vector.

Inherited Methods#

_ConfigBase.from_dict

Create an instance from a dictionary of attribute values.

_ConfigBase.to_dict

Return config parameters as a dictionary.