onstove.north_arrow#

onstove.north_arrow(ax=None, location=(0.95, 0.95), size=30, color='black', linewidth=1)[source]#

Function to plot a north arrow in a map.

It makes use of the add_svg() to add a north arrow icon in a specified location of an axes.

Parameters:
ax: matplotlib.axes.Axes, optional

Object of type matplotlib.axes.Axes.

location: tuple of floats, default (0.95, 0.95)

Location to plot the image in fraction of the x and y axes.

size: int, default 30

Size of the image in pixels.

color: str, default ‘black’

color of the image.

linewidth: int, default 1

Width of the borders of the image in pixels.

See also

add_svg