get_positionο
- Compass.get_position(coords='data')ο
Return the current position of the compass.
- Parameters:
coords (str, optional) β
Define what coordinates are returned
βdataβ : coordinates in the plot-crs
βaxisβ: relative [0-1] coordinates with respect to the axis (e.g. (0, 0) = lower left corner, (1, 1) = upper right corner)
The default is βdataβ.
- Returns:
a tuple (x, y) representing the current location of the compass.
- Return type:
pos