onstove.add_svg#

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

Function to add an svg image as an icon to a location on a specified axes.

It reads in the path to a svg image, converts the svg to a marker and plots it to a location in a specified axes or the current axes in used if not defined.

Parameters:
path: str

Path to a svg image.

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.