salem.Map.set_scale_bar

Map.set_scale_bar(location=None, length=None, maxlen=0.25, **kwargs)[source]

Add a legend bar showing the scale to the plot.

Parameters:
location : tuple

the location of the bar (in the plot’s relative coordinates)

length : float

the length of the bar in proj units (m or deg). Default is to find the nicest number satisfying maxlen

maxlen : float

the maximum lenght of the bar (in the plot’s relative coordinates) when choosing the length automatically

kwargs : dict

any kwarg accepted by set_geometry. Defaults are put on color, linewidth, text, text_kwargs… But you can do whatever you want