绘制非线性刻度折线图
绘制横轴等距折线图
t = [1,2,4,8]
raw_1 = [0.02, 0.02, 0.3, 0.4]
raw_2 = [0.6, 0.7, 0.2, 0.3]
x = range(len(t))
plt.plot(x, raw_1, color='r', marker='o')
plt.plot(x, raw_2, color='b', marker='o')
plt.xticks(x,t)
plt.show()
绘制非线性刻度折线图
绘制横轴等距折线图
t = [1,2,4,8]
raw_1 = [0.02, 0.02, 0.3, 0.4]
raw_2 = [0.6, 0.7, 0.2, 0.3]
x = range(len(t))
plt.plot(x, raw_1, color='r', marker='o')
plt.plot(x, raw_2, color='b', marker='o')
plt.xticks(x,t)
plt.show()