Producing clear, publication-quality figures with matplotlib.
Matplotlib’s defaults are designed for quick interactive exploration, not for figures in a thesis or journal article. A few deliberate choices (figure size matched to the final column width, labelled axes with units, readable font sizes, distinguishable line styles) make a large difference.
The code below runs every time this page’s source changes, and Figure 1 shows its actual output.