plot_grid#

VirtualBSEImager.plot_grid(pattern_idx: Tuple[int, ...] | None = None, rgb_channels: None | List[Tuple] | List[List[Tuple]] = None, visible_indices: bool = True, **kwargs) EBSD[source]#

Plot a pattern with the detector grid superimposed, potentially coloring the edges of three grid tiles red, green and blue.

Parameters:
pattern_idx

A tuple of integers defining the pattern to superimpose the grid on. If not given (default), the first pattern is used.

rgb_channels

A list of tuple indices defining three or more detector grid tiles which edges to color red, green and blue. If not given (default), no tiles’ edges are colored.

visible_indices

Whether to show grid indices. Default is True.

**kwargs

Keyword arguments passed to matplotlib.pyplot.axhline() and axvline, used by HyperSpy to draw lines.

Returns:
pattern

A signal with a single pattern with the markers added.