import numpy as np #导入科学计算numpy库模块
import matplotlib.pyplot as plt
a=np.arange(10)
plt.plot(a,a*1.5,'ro-',label='a')
plt.plot(a,a*2.5,'gx--',label='b')
plt.plot(a,a*3.5,'y*',label='c')
plt.plot(a,a*4.5,'bs-',label='d')
plt.plot(a,a*5.5,'mH--',label='e')
plt.savefig('../R&Q_pic/test2.jpg',dpi=600)
plt.legend() #添加图例
plt.show()