def _create_spectrum(self):
     self.spectrum_options = SpectrumOptionsManager()
     model = SpectrumModel(
         analyses=self.analyses,
         plot_options=self.spectrum_options.plotter_options)
     model.refresh_panels()
     p = model.next_panel()
     self.spectrum_graph = p.make_graph()
     self.spectrum_model = model
Beispiel #2
0
    def get_component(self, ans, plotter_options):
        if plotter_options is None:
            pom = SpectrumOptionsManager()
            plotter_options = pom.plotter_options

        from pychron.processing.plotters.spectrum.spectrum_model import SpectrumModel

        model = SpectrumModel(plot_options=plotter_options)
        model.analyses = ans
        iv = FigureContainer(model=model)
        #self._model = model
        return model, iv.component