scatter#

Misorientation.scatter(projection: Literal['axangle', 'rodrigues', 'homochoric'] = 'axangle', figure: Figure | None = None, position: int | tuple[int, int, int] | SubplotSpec = (1, 1, 1), return_figure: bool = False, wireframe_kwargs: dict | None = None, size: int | None = None, figure_kwargs: dict | None = None, **kwargs) Figure | None[source]#

Plot misorientations in 3D Euclidean space using a Neo-Eulerian projection.

Parameters:
projection

Which axis-angle projection to use for plotting into Euclidean space. The options are “axangle” (default) for a linear scaling, “homochoric” for an equal-volume scaling, or “rodrigues” for a rectilinear scaling.

figure

If given, a new plot axis with the projection specified by projection is added to the figure in the position specified by position. If not given, a new figure is created.

position

Where to add the new plot axis. 121 or (1, 2, 1) places it in the first of two positions in a grid of 1 row and 2 columns. See add_subplot() for further details. Default is (1, 1, 1).

return_figure

Whether to return the figure. Default is False.

wireframe_kwargs

Keyword arguments passed to plot_wireframe() or equivalent.

size

If not given, all misorientations are plotted. If given, a random sample of this size of the misorientations is plotted.

figure_kwargs

Dictionary of keyword arguments passed to matplotlib.pyplot.figure() if figure is not given.

**kwargs

Keyword arguments passed to the orix plotting class set by position.

Returns:
figure

Figure with the added plot axis, if return_figure is True.

Examples using Misorientation.scatter#

Color scatter plots

Color scatter plots

Visualizing orientations

Visualizing orientations