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

rotate_data#

DPCSignal2D.rotate_data(angle, reshape=False)[source]#

Rotate the scan dimensions by angle.

Parameters:

angle (float) – Clockwise rotation in degrees

Returns:

rotated_signal

Return type:

DPCSignal2D

Example

Rotate data by 10 degrees clockwise

>>> s = pxm.data.dummy_data.get_simple_dpc_signal()
>>> s_rot = s.rotate_data(10)
>>> s_rot.plot()