Set fonts in matplotlib graphs equal to tex document
I am writing my phd in LaTeX and I am generating all my graphical content in Python with the matplotlibpackage. For my TeX document, I am using a math-supported font -- e.g. Kurier Light Condensed -- and I would like to use the same font in my plots.
What is the easiest way to use the same font in my matplotlib figures and my corpus text in LaTeX?
- e.g. can I save my figures (vectorized ?) such that it takes the tex font when importing in tex?
- e.g. can I import the font in matplotlib and use it there?