How to change legend size with matplotlib.pyplot

You can set an individual font size for the legend by adjusting the prop keyword. This takes a dictionary of keywords corresponding to matplotlib.font_manager.FontProperties properties. See the documentation for legend: Keyword arguments: It is also possible, as of version 1.2.1, to use the keyword fontsize.