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