def _plot_default(self): en_coeff = getattr(self, "en_coeff_{0}".format(self.detector)) plot = make_spectrum_plot(self.chan, self.hist, self.pchn, self.peak, en_coeff, scale=self.linlog_toggle) return plot
def draw_plot(self): label = "Detector {0} {1} Spectrum".format(self.detector, self.spectrum) en_coeff = getattr(self, "en_coeff_{0}".format(self.detector)) plot = make_spectrum_plot(self.chan, self.hist, self.pchn, self.peak, en_coeff, label, self.linlog_toggle) self.plot = plot