scientific-python-lectures icon indicating copy to clipboard operation
scientific-python-lectures copied to clipboard

Matplotlib and pgf

Open pank opened this issue 11 years ago • 1 comments

First, your notes are very good!

Since some releases ago matplotlib has supported pgf for LaTeX output. This allows to graphs that are compiled into to pdf graphics by the LaTeX pgf package. If compilation time isn't an issue (caching is possible) it may be preferable to pdf output, as font sizes and fonts are handled by LaTeX.

Perhaps this should be reflected in the "Formatting text: LaTeX, fontsize, font family" in the matplotlib slides. Using pgf does in my experience allow for less fiddling when producing plots.

pank avatar Nov 22 '13 01:11 pank

Hi. Thanks for the suggestion. Yes, pgf can give very nice results in latex documents, and that certainly deserves some mentioning. I'll look into working that into the notebook.

jrjohansson avatar Nov 22 '13 15:11 jrjohansson