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

rotate_diffraction#

Diffraction2D.rotate_diffraction(angle, show_progressbar=True)[source]#

Rotate the diffraction dimensions.

Parameters:
  • angle (scalar) – Clockwise rotation in degrees.

  • show_progressbar (bool) – Default True

Returns:

rotated_signal

Return type:

Diffraction2D class

Examples

>>> s = pxm.data.dummy_data.get_holz_simple_test_signal()
>>> s_rot = s.rotate_diffraction(30, show_progressbar=False)