figs.py 文件源码

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

项目:extract 作者: dblalock 项目源码 文件源码
def makeDishwasherFig(ax=None, zNorm=True, save=True):
    # ts = getGoodDishwasherTs()
    # ts.data = ar.zNormalizeCols(ts.data)
    ts = getFig1Ts(zNorm=True, whichTs=WHICH_DISHWASHER_TS)
    # ax = ts.plot(useWhichLabels=['ZC'], showLabels=False, capYLim=900)
    colors = DISHWASHER_COLOR_PALETTE * 3 # cycles thru almost three times
    colors[DISHWASHER_DIM_TO_HIGHLIGHT] = DISHWASHER_HIGHLIGHT_COLOR
    colors = colors[:ts.data.shape[1]]

    ts.data[:, 2] /= 2 # scale the ugliest dim to make pic prettier
    ax = ts.plot(showLabels=False, showBounds=False, capYLim=900, ax=ax,
        colors=colors) # resets palette...
    # ax = ts.plot(showLabels=False, showBounds=False, capYLim=900, ax=None) # works

    # ax.plot(ts.data[:, DISHWASHER_DIM_TO_HIGHLIGHT], color=DISHWASHER_HIGHLIGHT_COLOR)
    # sb.set_palette(DEFAULT_SB_PALETTE)

    sb.despine(left=True)
    ax.set_title("Dishwasher", y=TITLE_Y_POS)
    # ax.set_xlabel("Minute")
    plt.tight_layout()
    if save:
        saveFigWithName('dishwasher')

# ------------------------------------------------ MSRC
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号