def __on_smooth(self, _event):
     with 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()
Пример #2
0
 def __plot_smooth(self):
     data = smooth_spectrum(self.data, self.settings.smoothFunc,
                            self.settings.smoothRatio)
     self.extent = Extent(data)
     return self.__plot(data)