random#

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

Create random misorientations.

Parameters:
shape

Shape of the misorientations.

symmetry

Tuple of two sets of crystal symmetries. If not given, the returned misorientation(s) is assumed to be transformation between crystals with only the identity operation, 1 (C1).

Returns:
M

Random misorientations.

Examples using Misorientation.random#

Color scatter plots

Color scatter plots

Visualizing orientations

Visualizing orientations

Visualizing paths between rotations and vectors

Visualizing paths between rotations and vectors