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 axesfactor (
float) – Scaling factor from data coordinates to unitsextent (
float, optional) – Length of the scale bar in units. Default is 100unit (
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