我想让代码只看图表中的某个区域。图表不会根据图表的线条而改变。我知道有办法,但我可以用Matplotlib找到
xl = len(x)
zlx = int(xl) + 1
x.append(zlx)
y22 = current_stock # Other parts of my code
y.append(y22)
plt.plot(x, y, linewidth = 2,
marker='o', markerfacecolor='blue', markersize=7)
# Here I want is so that the y is constant
plt.draw()
plt.pause(1)
plt.clf()
使用ylim和xlim属性
相关问题 更多 >
编程相关推荐