set_label_props

ScaleBar.set_label_props(scale=None, rotation=None, every=None, offset=None, color=None, **kwargs)

Set the properties of the labels (and update the plot accordingly)

Parameters
  • scale (int, optional) – A scaling factor for the fontsize of the labels. The default is 1.

  • rotation (float, optional) – the rotation angle of the labels (in degrees) relative to the curvature of the scalebar. The default is 0.

  • every (int, optional) – DESCRIPTION. The default is 2.

  • offset (float, optional) – A scaling factor to adjust the offset of the labels relative to the scalebar. The default is 1.

  • color (str or tuple) – The color of the text. The default is β€œk” (e.g. black)

  • kwargs –

    Additional kwargs are passed to matplotlib.font_manager.FontProperties to set the font specifications of the labels. Possible values are:

    • ”family”, β€œstyle”, β€œvariant”, β€œstretch”, and β€œweight”

    For example:
    >>> dict(family="Helvetica", style="italic").