pyplot legend size code example
Example 1: legend size matplotlib
plt.plot([1, 2, 3], label='Inline label')
plt.legend(loc=1, prop={'size': 16})
Example 2: position of legend matplotlib
plt.legend(loc='upper right')
Example 3: matplotlib pyplot legend location
figlegend( (line1, line2, line3),
('label1', 'label2', 'label3'),
'upper right' )