Improve matplotlib Plots in Journals and Thesis

To keep the fonts of a matplotlib figure consistent with surrounding context in a LaTeX file, I need to set the size of the figure correctly in advance. Otherwise, scale the figure later to fit it into the LaTeX file will alter the fonts in the figure as well. Here is a useful link I found

Or I can just use style sheets for different applications?