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").