matplotlib change legend size and location code example
Example 1: increase figure size in matplotlib
plt.figure(figsize=(20,10))
Example 2: matplotlib plot title font size
from matplotlib import pyplot as plt
fig = plt.figure()
plt.plot(data)
fig.suptitle('test title', fontsize=20)
plt.xlabel('xlabel', fontsize=18)
plt.ylabel('ylabel', fontsize=16)
fig.savefig('test.jpg')
Example 3: text size legend to bottom matplotlib
plot.legend(loc=2, prop={'size': 6})