change legend size to 'x-small' in upper-left location,"pyplot.legend(loc=2, fontsize='x-small')"