Here's a more complete version. It works with matplotlib-0.54 now, and
I've tested it with a few of the example scripts, though I'm sure there
are bugs. It doesn't do images or mathtext yet.
I found out that Inkscape doesn't support clipping yet, so it's sort of
useless right now for some plots. The viewer I used to test the backend
was the Adobe SVG plugin, which is available for lots of platforms:
It still might be useful to implement PolygonCollections, because it
might decrease the file size if, for the markers, we define a shape with
its properties, and then just translate it to make copies. I also just
noticed the 'marker' element, which looks promising.
backend_svg.py (9.29 KB)