# -*- coding:utf-8 -*- __author__='Shanshan Wang' ''' function:different result at different L ''' import matplotlib.pyplot as plt import matplotlib X=[50,100,150,200,250,300] ACC=[0.976668,0.9827,0.9820,0.980098,0.97880,0.9780] AUC=[0.97273,0.9788, 0.97808,0.97803776,0.977533,0.978182] F_Measure=[0.9832735,0.9876,0.98712,0.98570,0.98475,0.98414] ax = plt.gca() #设置横坐标的显示刻度为50的倍数 ax.xaxis.set_major_locator(matplotlib.ticker.MultipleLocator(50)) n1=plt.plot(X,ACC,'d-',label='Accuracy') n2=plt.plot(X,AUC,'x-',label='AUC') n3=plt.plot(X,F_Measure,'o-',label='F-Measure') plt.legend(loc='lower right',fontsize=12) ax.set_xlabel('Different Embedding Size',fontsize=12,labelpad = 12.5) ax.set_ylabel('Metric Values',fontsize=12,labelpad = 12.5) plt.grid(ax) plt.show()