plt.legend size increase of color code example Example: text size legend to bottom matplotlib plot.legend(loc=2, prop={'size': 6})