scientific-python-lectures
scientific-python-lectures copied to clipboard
Matplotlib and pgf
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.
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.