change legend font size with matplotlib.pyplot to 6,"plot.legend(loc=2, prop={'size': 6})"