#!/usr/bin/env python
#coding=utf8
#中文中文
import numpy as np
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
font1 = {'family' : 'Times New Roman',
'weight' : 'normal',
'size' : 22,
}
x=[1,2,3,4]
y=[2,3,4,5]
ax.plot(x,y,label='haha1')
ax.plot(x,y,label='haha2')
ax.legend(loc=9,numpoints=1)
leg = plt.gca().get_legend()
ltext = leg.get_texts()
plt.setp(ltext, fontsize=23)
ax.yaxis.set_ticks_position('left')
plt.tick_params(labelsize=25)
#plt.xlabel('x',font1)
#plt.show()
plt.savefig('./1.png',dpi=90,bbox_inches='tight')