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

to_markers#

PolarVectors.to_markers(has_delta_angle=None, cartesian=True, **kwargs)[source]#

Convert the vectors to markers to be plotted on a signal.

Parameters:
  • has_delta_angle (bool, optional) – If the vectors are polar in the form (r, theta), then this parameter should be set to False. If the vectors are in the form (r, delta phi, min-angle), then this parameter should be set to True. The default is None which will infer the format from the column names.

  • cartesian (bool, optional) – If True, the vectors will be converted to cartesian coordinates before plotting. The default is True.

  • **kwargs – Keyword arguments to be passed to the hyperspy.api.plot.markers.Point class.

Returns:

A Point object containing the markers.

Return type:

hyperspy.api.plot.markers.Point