legend font size matplotlib code example
Example 1: legend size matplotlib
plt.plot([1, 2, 3], label='Inline label')
plt.legend(loc=1, prop={'size': 16})
Example 2: matplotlib set size
plt.figure(figsize=(20,8))
Example 3: text size legend to bottom matplotlib
plot.legend(loc=2, prop={'size': 6})