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

to_roi#

DiffractionVectors2D.to_roi(radius=0.1, columns=None, include_labels=False, **kwargs)[source]#

Convert the diffraction vectors to regions of interest (ROIs) for creating virtual images.

Parameters:
  • radius (float) – The radius of the ROIs in calibrated units

  • columns (list) – The columns to use for the ROIs. If None, columns 0 and 1 are used to create the ROIs.

  • include_labels (bool) –

    If True, the labels for each ROI are returned as well using hyperspy’s

    hyperspy.api.plot.markers.Texts class.

  • kwargs (dict) – Keyword arguments to pass to the hyperspy.api.plot.markers.Texts class.