I would like to know how to adjust the font size used in a legend in a Python chart using the matplotlib library. I did a search and found this form.
plt.legend(loc='upper left', prop={'size':12})
Is there another way to adjust the font size of the caption so that it is proportional to the size of the picture?