random#

classmethod Orientation.random(shape: int | tuple[int, ...] = 1, symmetry: Symmetry | None = None) Orientation[source]#

Create random orientations.

Parameters:
shape

Shape of the orientations.

symmetry

Crystal symmetry. If not given, the returned orientation(s) is given only the identity symmetry operation, 1 (C1).

Returns:
O

Random orientations.

Examples using Orientation.random#

Color scatter plots

Color scatter plots

Visualizing orientations

Visualizing orientations

Visualizing paths between rotations and vectors

Visualizing paths between rotations and vectors