get_phase_signal#
- DPCSignal2D.get_phase_signal(rotation=None)[source]#
Get DPC phase image visualized using continuous color scale.
Converts the x and y beam shifts into an RGB array, showing the direction of the beam shifts.
Useful for visualizing magnetic domain structures.
- Parameters:
rotation (float, optional) – In degrees. Useful for correcting the mismatch between scan direction and diffraction pattern rotation.
autolim (bool, default True)
autolim_sigma (float, default 4)
- Returns:
phase_signal
- Return type:
HyperSpy 2D RGB signal
Examples
>>> s = pxm.data.dummy_data.get_simple_dpc_signal() >>> s_color = s.get_phase_signal(rotation=20) >>> s_color.plot()
See also
get_color_signal
Signal showing both phase and magnitude
get_magnitude_signal
Signal showing the magnitude