def plot_similarity(self, ax=None):
xc = self._calc()
if not ax:
fig, ax = pl.subplots(1)
ln = ax.plot(np.arange(len(xc))-self.nwind+1, xc)
ax.hold('on')
ax.plot(self.cand_period, self.cand_strength, 'o',
color=ln[0].get_color())
评论列表
文章目录