I am looking for a way to save a matplotlib figure as an EMF file. Matplotlib allows me to save as either a PDF or SVG vector file but not as EMF.
After a long search I still cannot seem to find a way to do this with python. Hopefully anyone has an idea.
My workaround is to call inkscape using subprocess but this is far from ideal as I would like to avoid the use of external programs.
I'm running python 2.7.5 and matplotlib 1.3.0 using the wx backend.om svglib.svglib import svg2rlgfrom reportlab.graphics import renderPDFdrawing = svg2rlg("test.svg")renderPDF.drawToFile(drawing, "test.pdf") error: pydev debugger: startingTraceback (most recent call last): File "C:\Users\Stone\.ecl python python-2.7 svg matplotlib