I work on both Windows and Linux. I already include SVG graphics that I create in Inkscape with \usepackage{svg}. For maintainablitly reasons I would welcome to re-use that for matplotlib plots, but I am open for additional suggestions.

With plots and graphs created with matplotlib I would like to have axis labels and ticks as well as legends etc texts in latex font and style, very much like what I get when including SVG from Inkscape. I am aware of usetex=True on the matplotlib side, but I fear that the rendered text in the plot will scale with the created SVG and produce to small or to big fonts compared to the text in my document rendered by LaTeX.

What is the state-of-the-art way to include matplotlib vector graphics?


I'd say the state-of-the-art way to have plots with LaTeX fonts and style is using PGF/Tikz, so have a look at tikzplotlib.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.