Caption Font size in a graph made in python

I would like to know how to adjust the font size used in a caption in a graph made in Python using the matplotlib library. I did a search and found this form.

plt.legend(loc='upper left', prop={'size':12})

Has another way to adjust the font size of the caption So that it is proportional to the size of the figure?

Author: YanSym, 2014-07-31

1 answers

If you add this to the code, All Your generated figures will have the same font in the caption.

import matplotlib.pyplot as plt
plt.rcParams['legend.fontsize'] = 12
 1
Author: gabra, 2014-09-26 13:02:33