Installation¶
svg2mpl requires Python 3.10 or newer.
From PyPI¶
This pulls in matplotlib, numpy, and svgpath2mpl.
CSS <style>-block support¶
Presentation attributes (fill="red") and inline styles (style="fill:red")
work out of the box. To also resolve <style> blocks with CSS selectors and
specificity, install the optional css extra:
This adds tinycss2 and cssselect2.
With uv¶
From source¶
To build the documentation locally, sync the docs dependency group and serve
it with live reload: