Reputation: 23
I'm plotting data with matplotlib
pgf
backend for inclusion in LaTeX documents. The backend produces a pgf
file which is rendered by LaTeX and includes all labels, axis and so on. It also produces png
files containing the underlying image, colorbar and so on.
Is it possible to produce these images in pdf
or svg
or some other vector graphics format for higher quality?
Clarification: The problem of producing vector graphics only arises in combination with the PGF back-end. I want to use the PGF backend so that all text is rendered by LaTeX during compilation of my document. The PGF back-end produces not pure LaTeX/PGF code but some parts of the figure as a PNG image and includes it: \pgfimage[interpolate=true,width=0.126667in,height=2.560000in]{plot.png}
. I want these parts to be generated as PDF not PNG. savefig(plot.pgf, fomat='pdf')
does not work.
Upvotes: 1
Views: 1332