Esempio n. 1
0
    def __init__(self, wintitle="guiqwt plot", icon="guiqwt.svg",
                 toolbar=False, options=None, panels=None, param_cols=1,
                 legend_anchor='TR', auto_fit=True):
        if wintitle is None:
            wintitle = _('Curve fitting')

        self.x = None
        self.y = None
        self.fitfunc = None
        self.fitargs = None
        self.fitkwargs = None
        self.fitparams = None
        self.autofit_prm = None
        
        self.data_curve = None
        self.fit_curve = None
        self.legend = None
        self.legend_anchor = legend_anchor
        self.xrange = None
        self.show_xrange = False
        
        self.param_cols = param_cols
        self.auto_fit_enabled = auto_fit      
        self.button_list = [] # list of buttons to be disabled at startup

        self.fit_layout = None
        self.params_layout = None
        
        CurveWidgetMixin.__init__(self, wintitle=wintitle, icon=icon, 
                                  toolbar=toolbar, options=options,
                                  panels=panels)
        
        self.refresh()
Esempio n. 2
0
    def __init__(self,
                 wintitle="guiqwt plot",
                 icon="guiqwt.png",
                 toolbar=False,
                 options=None,
                 panels=None,
                 param_cols=1,
                 legend_anchor='TR',
                 auto_fit=True,
                 show_range=False):
        if wintitle is None:
            wintitle = _('Curve fitting')

        self.x = None
        self.y = None
        self.sigma = None
        self.fitfunc = None
        self.fitnames = []
        self.fitargs = None
        self.fitkwargs = None
        self.fitparams = None
        self.autofit_prm = None

        self.data_curve = None
        self.fit_curves = []
        self.fit_curve = None
        self.legend = None
        self.legend_anchor = legend_anchor
        self.xrange = None
        self.show_xrange = show_range

        self.param_cols = param_cols
        self.auto_fit_enabled = auto_fit
        self.button_list = []  # list of buttons to be disabled at startup

        self.fit_layout = None
        self.params_layouts = []

        CurveWidgetMixin.__init__(self,
                                  wintitle=wintitle,
                                  icon=icon,
                                  toolbar=toolbar,
                                  options=options,
                                  panels=panels)

        self.refresh()
Esempio n. 3
0
 def create_plot(self, options):
     CurveWidgetMixin.create_plot(self, options)
     for plot in self.get_plots():
         plot.SIG_RANGE_CHANGED.connect(self.range_changed)
Esempio n. 4
0
 def create_plot(self, options):
     CurveWidgetMixin.create_plot(self, options)
     for plot in self.get_plots():
         plot.SIG_RANGE_CHANGED.connect(self.range_changed)