On 16/12/11 09:55, ~suv wrote:
On 16/12/11 01:41, cpblpublic+usenet@...155... wrote:
Matplotlib produces pdf figures whose bounding boxes do not enclose all of the contents of the figure (or, usually, are too big).
I thought inkscape could easily solve this problem with:
inkscape -f matplotlibOutput.pdf --verb=FitCanvasToDrawing -A prettyfigure.pdf
But that leaves the pdf unchanged. Have I made a basic error?
Try this:
$ cp matplotlibOutput.pdf prettyfigure.pdf $ inkscape -f prettyfigure.pdf.pdf \ --verb=FitCanvasToDrawing \ --verb=FileSave \ --verb=FileQuit
Sorry for the typo:
$ cp matplotlibOutput.pdf prettyfigure.pdf $ inkscape -f prettyfigure.pdf \ --verb=FitCanvasToDrawing \ --verb=FileSave \ --verb=FileQuit
~suv