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

crop#

UniformDataAxis.crop(start=None, end=None)#

Crop the axis in place.

Parameters:
  • start (int, float, or None) – The beginning of the cropping interval. If type is int, the value is taken as the axis index. If type is float the index is calculated using the axis calibration. If start/end is None the method crops from/to the low/high end of the axis.

  • end (int, float, or None) – The end of the cropping interval. If type is int, the value is taken as the axis index. If type is float the index is calculated using the axis calibration. If start/end is None the method crops from/to the low/high end of the axis.