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

plot_integrated_intensity#

CommonDiffraction.plot_integrated_intensity(roi, out_signal_axes=None, **kwargs)[source]#

Interactively plots the integrated intensity over the scattering range defined by the roi.

Parameters:
  • roi (float) – Any interactive ROI detailed in HyperSpy.

  • out_signal_axes (None, iterable of int or string) – Specify which navigation axes to use as signal axes in the virtual image. If None, the two first navigation axis are used.

  • **kwargs – Keyword arguments to be passed to the plot method of the virtual image.

Examples

>>> # For 1D diffraction signal, we can use a SpanROI
>>> roi = hs.roi.SpanROI(left=1., right=2.)
>>> dp.plot_integrated_intensity(roi)
>>> # For 2D diffraction signal,we can use a CircleROI
>>> roi = hs.roi.CircleROI(3, 3, 5)
>>> dp.plot_integrated_intensity(roi)