scatter#
- Misorientation.scatter(projection: str = 'axangle', figure: Figure | None = None, position: int | Tuple[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 [source]#
Plot misorientations in axis-angle space or the Rodrigues fundamental zone.
- Parameters:
- projection
Which misorientation space to plot misorientations in, either
"axangle"
(default) or"rodrigues"
.- figure
If given, a new plot axis
AxAnglePlot
orRodriguesPlot
is added to the figure in the position specified byposition
. 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
orix.plot.AxAnglePlot.plot_wireframe()
ororix.plot.RodriguesPlot.plot_wireframe()
.- 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()
iffigure
is not given.- **kwargs
Keyword arguments passed to
orix.plot.AxAnglePlot.scatter()
ororix.plot.RodriguesPlot.scatter()
.
- Returns:
figure
Figure with the added plot axis, if
return_figure=True
.