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
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
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
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) component = iv.component c = u'Plateau age calculated as weighted mean of plateau steps. ' \ u'Integrated age calculated as isotopic recombination of all steps.\n' \ u'Plateau and Integrated Age uncertainties \u00b1{}\u03c3.' \ u'GMC=Groundmass Concentrate, Kaer=Kaersutite, Plag=Plagioclase' self._add_caption(component, plotter_options, default_captext=c) return model, component