locan.visualize.render_mpl.render2d.scatter_2d_mpl#

locan.visualize.render_mpl.render2d.scatter_2d_mpl(locdata, ax=None, index=True, text_kwargs=None, **kwargs)[source]#

Scatter plot of locdata elements with text marker for each element.

Parameters:
  • locdata (LocData) – Localization data.

  • ax (Optional[Axes]) – The axes on which to show the plot

  • index (bool) – Flag indicating if element indices are shown.

  • text_kwargs (Optional[dict[str, Any]]) – Keyword arguments for matplotlib.axes.Axes.text().

  • kwargs (Any) – Other parameters passed to matplotlib.axes.Axes.scatter().

Returns:

Axes object with the image.

Return type:

matplotlib.axes.Axes