ScaleBar#
- class eomaps.scalebar.ScaleBar(m, preset=None, scale=None, n=10, autoscale_fraction=0.1, auto_position=(0.75, 0.25), size_factor=1, scale_props=None, patch_props=None, label_props=None, line_props=None, layer=None)#
Base class for EOmaps scalebars.
Note
To add a new scalebar to a map, see
Maps.add_scalebar
.
Methods
|
Apply a style-preset to the Scalebar. |
Return the current position (and orientation) of the scalebar. |
|
Get the currently used scale of the scalebar. |
|
Get the current size-factor of the scalebar. |
|
|
Print the command that will reproduce the scalebar in its current state. |
|
Remove the scalebar from the map. |
|
Automatically evaluate an appropriate scale for the scalebar. |
|
Set the style properties of the labels. |
|
Set the style properties of the lines connecting the scale and the labels. |
|
Set number of segments to use for the scalebar. |
|
Set the style properties of the background patch. |
|
Set if the scalebar is interactive (True) or not (False). |
|
Set the position of the colorbar. |
|
Set the absolute rotation angle of the first segment of the scalebar. |
|
Set the length of a segment of the scalebar in meters. |
|
Set the style properties of the scale. |
Set the size_factor that is used to adjust the size of the labels. |