set_scale_props

ScaleBar.set_scale_props(scale=None, n=None, width=None, colors=None)

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

Parameters
  • scale (float, optional) – The length (in meters) of the individual line-segments. The default is 10000.

  • n (int, optional) – The number of scales (e.g. line-segments) to draw. The default is 10.

  • width (float, optional) – The width of the scalebar (in ordinary matplotlib linewidth units). The default is 5.

  • colors (tuple, optional) – A sequence of colors that will be repeated to color the individual line-fragments of the scalebar. (you can provide more than 2 colors!) The default is (“k”, “w”).