figs.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:extract 作者: dblalock 项目源码 文件源码
def makeFig1():
    ts = getFig1Ts()

    # set up axes
    ax1 = plt.subplot2grid((2,2), (0,0), colspan=2)
    ax2 = plt.subplot2grid((2,2), (1,0))
    ax3 = plt.subplot2grid((2,2), (1,1))
    axes = [ax1, ax2, ax3]

    for ax in axes:
        ax.autoscale(tight=True)
        sb.despine(left=True, ax=ax)

    ts.plot(showLabels=False, showBounds=False, ax=ax1)

    lengths = [150]
    ts_sota = labelTs_sota(ts, lengths)
    ts_sota.plot(showLabels=False, ax=ax2)

    ts_ff = labelTs_ff(ts, 100, 200) # Lmin, Lmax
    ts_ff.plot(showLabels=False, ax=ax3)

    plt.setp(ax3.get_yticklabels(), visible=False)
    ax1.set_title("Patterns in Dishwasher Dataset")
    ax1.set_xlabel("Minute")
    ax2.set_title("State-of-the-art")
    ax3.set_title("Proposed")

    plt.tight_layout()
    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号