hyperspy/hyperspyUI

Line measure + changing axis scale

Opened this issue · 1 comments

The line measure tool doesn't work properly after changing axis scale.

To replicate:

  • Generate an image signal (s = hs.signals.Signal2D(np.random.random(size=(100,100))))
  • Press line measure tool and drag it in the image (this works)
  • In the Axes configuration, under "Calibration", change the scale (for example to 0.5, for both axes).
  • The line tool will now be restricted to the top-left corner of the image

This also extends to the crop tool