【发布时间】:2016-02-06 01:58:46
【问题描述】:
我实际上是新来的,我刚开始为我的硕士论文项目使用 python。我尝试绘制多个数字,但我不能。我看过许多相同的问题和答案,但仍然无法得到结果。
plt.figure(1)
plt.draw()
plt.axis([14,55, 3, 5])
plt.xlabel('doy')
plt.ylabel('amplitudes of L1 & L2 signals')
red_dot, = plt.plot(X1, L1,'ro')
green_dot, = plt.plot(X1, L2, 'go')
plt.legend([red_dot, green_dot], ["L1", "L2"])
plt.figure(2)
plt.draw()
plt.axis([14,55, 25, 60])
plt.xlabel('doy')
plt.ylabel('dampenings of L1 & L2 signals')
red_dot, = plt.plot(X1, damp_L1,'ro')
green_dot, = plt.plot(X1, damp_L2, 'go')
plt.legend([red_dot, green_dot], ["dampening of L1", "dampening of L2"])
plt.show()
这就是我写的,我唯一得到的是一个带有第一个图的图形 1 和一个空的图形 2 窗口,里面没有数据! 有人可以帮忙吗?
谢谢
【问题讨论】:
标签: python matplotlib plot