You can change the global font size in matplotlib using rcparams. You can also change the font size of individual components such as tick labels, axes labels, axes title, etc.