
16 Dec
2011
16 Dec
'11
4:46 p.m.
Alternative without needing to press any buttons:
$ inkscape -f matplotlibOutput.pdf -l matplotlibOutput.svg $ inkscape -f matplotlibOutput.svg --verb=FitCanvasToDrawing \ --verb=FileSave \ --verb=FileQuit $ inkscape -f matplotlibOutput.svg -A prettyfigure.pdf $ rm matplotlibOutput.svg
hth, ~suv
That works! Thanks!! The resultant file is also only 30% as big as the original. Hm, maybe that's bad. Has it lost fonts? The GUI popups are funny, but better than fiddling with other methods, so far. (It would be nice if I could tell X11 to set my display for this process to a sort of /dev/nul of X...)
Cheers, Chris