Matplotlib:哪个参数控制图到右侧?

时间:2014-03-22 14:41:04

标签: python matplotlib pandas ipython

总有一些余量,而且不是"保证金"在情节功能控制这个

sample

更新

这里是它的代码,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

0 个答案:

没有答案