plopp.graphics.Camera#

class plopp.graphics.Camera(position=None, look_at=None, near=None, far=None)[source]#

Camera configuration for three-dimensional plots. If values are provided as raw numbers instead of Scipp variables, their unit will be assumed to be the same as the unit of the spatial coordinates.

Parameters:
__init__(position=None, look_at=None, near=None, far=None)[source]#

Methods

__init__([position, look_at, near, far])

get(key[, default])

Attribute getter.

has_units()

Check if units have been set.

set_units(xunit, yunit, zunit)

Set the units of the camera attributes.

Attributes

far

The distance to the far clipping plane (how far from the camera objects can be before they disappear).

look_at

The point the camera is looking at.

near

The distance to the near clipping plane (how close to the camera objects can be before they disappear).

position

The position of the camera.