I have a code like this:
import matplotlib.pyplot as plt from matplotlib.pyplot import * from matplotlib.font_manager import FontProperties fontP = FontProp
Banged my head against it too, here is another more flowing way of doing it:
leg = ax.legend() leg.set_title('A great legend',prop={'size':14})