总有一些余量,而且不是"保证金"在情节功能控制这个
更新
这里是它的代码,e是一个pandas数据帧对象
def tplot(e):
f = e.copy()
x = [str(s)[5:-7] for s in f.index]
ff = f.set_index(pd.Series(x))
ff.index.name = 'Time'
ax = ff.plot()
y_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False)
ax.yaxis.set_major_formatter(y_formatter)
plt.xticks(rotation=30)
return ax