plot_grid#
- VirtualBSEImager.plot_grid(pattern_idx: tuple[int, ...] | None = None, rgb_channels: list[tuple] | list[list[tuple]] | None = 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()andaxvline(), used by HyperSpy to draw lines.
- Returns:
patternA single pattern with the markers added.