apply_preset

ScaleBar.apply_preset(preset)

Apply a style-preset to the Scalebar.

Currently available presets are:

  • β€œbw” : a black and white scalebar with no background color

  • β€œbw_2” : a black and white scalebar with white background

  • β€œkr” : a black and red scalebar with semi-transparent white background

Parameters:

preset (str) – The name of the preset.