def __on_smooth(self, _event): dlg = wx.BusyInfo('Please wait...') func = self.choiceFunc.GetStringSelection() ratio = self.slideRatio.GetValue() self.smoothed = smooth_spectrum(self.spectrum, func, ratio) self.__draw_plot(self.smoothed) self.buttonOk.Enable() dlg.Destroy()
def __plot_smooth(self): data = smooth_spectrum(self.data, self.settings.smoothFunc, self.settings.smoothRatio) self.extent = Extent(data) return self.__plot_all(data)
def __plot_smooth(self): data = smooth_spectrum(self.data, self.settings.smoothFunc, self.settings.smoothRatio) self.extent = Extent(data) return self.__plot(data)