stnmf.plot.scalebar

stnmf.plot.scalebar(ax, factor, extent=100, unit='μm', **kwargs)

Wrapper function for adding a scale bar to an axes

Parameters:
  • ax (matplotlib.axes.Axes) – Figure axes

  • factor (float) – Scaling factor from data coordinates to units

  • extent (float, optional) – Length of the scale bar in units. Default is 100

  • unit (str, optional) – Unit to be displayed. Default is ‘μm’

Keyword Arguments:

kwargs – Additional arguments to be passed to mpl_toolkits.axes_grid1.anchored_artists.AnchoredSizeBar