我有一个包含三列数据的数据框。
我可以使用ax = plt.gca()设置底部图表,但是如何设置其他子图的限制?
以下是我用于绘图的代码。
以下是我用于绘图的代码。
SomeDataFrame.plot(subplots=True, style=style, title='%s' % macID.upper(), grid=True, legend=True,)
ax = plt.gca()
ax.ylim=([lowlimit, highlimit])
plt.show()
set_ylim()
而不是ylim()
。 - Bartfirstplot.set_ylim([lowlimit, highlimit])
而不是firstplot.set_ylim=([lowlimit, highlimit])
至少对我来说,只有前者才能得到期望的结果,而后者则不能。 - Mihaela Grigore