to_markers#

OrientationMap.to_markers(n_best: int = 1, annotate: bool = False, marker_colors: str = ('red', 'blue', 'green', 'orange', 'purple'), text_color: str = 'black', lazy_output: bool = None, annotation_shift: Sequence[float] = None, text_kwargs: dict = None, include_intensity: bool = False, intensity_scale: float = 1, fast: bool = True, **kwargs) Sequence[Markers][source]#

Convert the orientation map to a set of markers for plotting.

Parameters:
  • n_best (int) – The amount of solutions to plot

  • annotate (bool) – If True, the euler rotation and the correlation will be annotated on the plot using the Texts class from hyperspy.

  • marker_color (str, optional) – The color of the point markers used for simulated reflections

  • text_color (str, optional) – The color used for the text annotations for reflections. Does nothing if annotate is False.

  • annotation_shift (List[float,float], optional) – The shift to apply to the annotation text. Default is [0,-0.1]

  • include_intensity (bool) – If True, the intensity of the diffraction spot will be displayed with more intense peaks having a larger marker size.

  • lazy_output (bool) – If True, the output will be a lazy signal. If None, the output will be lazy if the input is lazy.

  • fast (bool) – If True the annotations will print as -h rather than bar{h}

Returns:

all_markers – A list of markers for each of the n_best solutions

Return type:

Sequence[hs.plot.markers.Markers]