yt.visualization.volume_rendering.camera.StereoPairCamera.rotate

StereoPairCamera.rotate(theta, rot_vector=None)

Rotate by a given angle

Rotate the view. If rot_vector is None, rotation will occur around the north_vector.

Parameters:

theta : float, in radians

Angle (in radians) by which to rotate the view.

rot_vector : array_like, optional

Specify the rotation vector around which rotation will occur. Defaults to None, which sets rotation around north_vector

Examples

>>> cam.rotate(np.pi/4)