Visualizing patterns

The EBSD object has a powerful and versatile plot() method provided by HyperSpy, and its uses are greatly detailed in HyperSpy’s visualisation user guide. This section details example uses specific to EBSD objects.


The Nickel data set used in this section can be downloaded from [Anes2019].

Plot multiple scans

HyperSpy provides the function plot_signals() to plot multiple signals with the same navigator, as explained in the HyperSpy user guide. This enables e.g. plotting of experimental and simulated patterns side by side as a visual inspection of the indexing results:

>>> import hyperspy.api as hs
>>> import h5py
>>> with h5py.File('/path/to/simulated_patterns/sim.h5', mode='r') as f:
        patterns = f['EMData/EBSD/EBSDPatterns'][()]
>>> s_sim = kp.signals.EBSD(patterns.reshape(
>>> hs.plot.plot_signals([s, s_sim], navigator=s_om)

Plotting of experimental and simulated patterns side by side for visual inspection, using an orientation map as navigator.