def btnRedraw_handler(self, event): self.plots = [] first_wavelet = self.wavelets[0][0].get_wavelet() cnt = 1 for scale in range(first_wavelet.shape[0]-1,0, -1): cnt += 1 graph = self.wavelets[0][0].get_wavelet()[scale, :] for w in self.wavelets[1:]: ww = w[0].get_wavelet() off = w[2] wavelet_scale=ww[scale, :] graph = numpy.vstack((graph, wavelet_scale)) PyplotPlotter.pyplot_add_plot(self, graph.T) PyplotPlotter.pyplot_plot(self)
def __init__(self): PyplotPlotter.__init__(self)
def plot(self): PyplotPlotter.pyplot_plot(self)
def add_image(self, img, caption=None): PyplotPlotter.pyplot_add_image(self, img, caption)
def add_plot(self, y, x=None, caption=None): PyplotPlotter.pyplot_add_plot(self, y, x, caption)
def __init__(self): compare_wavelet_scales_interface.CompareWaveletScales.__init__(self, None, -1, "") PyplotPlotter.__init__(self) self.Bind(wx.EVT_CLOSE, self.btnClose_handler, self) self.wavelets = []