【发布时间】:2018-09-17 12:48:03
【问题描述】:
这段代码(matplotlib.pyplot)在下面的链接中给出了图:
plt.subplot(2, 1, 1)
plt.plot(px,py)
plt.subplot(2, 1, 2)
plt.plot(curve)
2 plots example --> 我想在第二个子图中在 100.000 处添加一条水平线。我怎样才能做到这一点?两个图的颜色应保持相同/同步。
【问题讨论】:
标签: python matplotlib plot line