Exemplo n.º 1
0
 def set_plot(self, spectrum, annotate):
     if len(spectrum) > 0:
         total = count_points(spectrum)
         if total > 0:
             spectrum = sort_spectrum(spectrum)
             extent = Extent(spectrum)
             self.graph.set_plot(spectrum, self.settings.pointsLimit, self.settings.pointsMax, extent, annotate)
Exemplo n.º 2
0
 def __set_plot(self, spectrum, annotate):
     if len(spectrum) > 0:
         total = count_points(spectrum)
         if total > 0:
             spectrum = sort_spectrum(spectrum)
             extent = Extent(spectrum)
             self.graph.set_plot(spectrum, self.settings.pointsLimit,
                                 self.settings.pointsMax, extent, annotate)
     else:
         self.graph.clear_plots()
Exemplo n.º 3
0
    def __draw_plot(self):
        start, end = self.__get_range()
        self.__spectrum_range(start, end)

        self.textSweeps.SetLabel(str(len(self.sweeps)))

        if len(self.sweeps) > 0:
            total = count_points(self.sweeps)
            if total > 0:
                extent = Extent(self.spectrum)
                self.plot.set_plot(self.sweeps, extent, False)
        else:
            self.plot.clear_plots()