Check out the Hyperspy Workshop May 13-17, 2024 Online

rotate_beam_shifts#

DPCSignal2D.rotate_beam_shifts(angle)[source]#

Rotate the beam shift vector.

Parameters:

angle (float) – Clockwise rotation in degrees

Returns:

shift_rotated_signal

Return type:

DPCSignal2D

Example

Rotate beam shifts by 10 degrees clockwise

>>> s = pxm.data.dummy_data.get_simple_dpc_signal()
>>> s_new = s.rotate_beam_shifts(10)
>>> s_new.plot()