from matplotlib import pyplot as plt data = np.loadtxt(r'C:\Users\yinggang\Desktop\1\a.txt') x,y,z = data plt.axes([0.2, 0.1, 0.5, 0.8]) plt.plot(x,y,x,z,x,y,'o',x,z,'o') plt.legend(('y', 'z'), loc=(1.05, 0.5)) plt.show() 其中a.txt 数据由制表符隔开,可由excel直接保存…