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
评论列表
文章目录