plot_pc#

EBSDDetector.plot_pc(mode: Literal['map', 'scatter', '3d'] = 'map', return_figure: Literal[False] = False, orientation: Literal['horizontal', 'vertical'] = 'horizontal', annotate: bool = False, figure_kwargs: dict | None = None, **kwargs) None[source]#
EBSDDetector.plot_pc(mode: Literal['map', 'scatter', '3d'] = 'map', return_figure: Literal[True] = True, orientation: Literal['horizontal', 'vertical'] = 'horizontal', annotate: bool = False, figure_kwargs: dict | None = None, **kwargs) mfigure.Figure

Plot all projection centers (PCs).

Parameters:
mode

String describing how to plot PCs. Options are “map” (default), “scatter” and “3d”. If map mode, navigation_dimension must be 2.

return_figure

Whether to return the figure (default is False).

orientation

Whether to align the plots in a “horizontal” (default) or “vertical” orientation.

annotate

Whether to label each pattern with its 1D index into pc_flattened when mode is “scatter”. Default is False.

figure_kwargs

Keyword arguments to pass to matplotlib.pyplot.figure() upon figure creation. Note that layout="tight" is used by default unless another layout is given.

**kwargs

Keyword arguments passed to the plotting function, which is imshow() if mode is “map”, scatter() if mode is “scatter”, and scatter() if mode is “3d”.

Returns:
fig

Figure is returned if return_figure is True.

Examples using EBSDDetector.plot_pc#

Estimate tilts about the detector x and z axis

Estimate tilts about the detector x and z axis

Plot distribution of projection centers

Plot distribution of projection centers