PEATDB/Ekin/Base.py
def doPlot(self, ek, fitdata, options):
        """Need a bare bones plotter that can plot any given ekin data
           Should then call this one in plotDatasets below and simplify"""
        x,y,a, xerr,yerr = ek.getAll()
        line = ax.scatter(x, y, marker='o')
        #plotting fit should also be seperate?
        f = fitdata
        d=[]
        X = Fitting.makeFitter(f, zip(x,y))
        if X==None: return
        #we now use this model to draw the fit line
        fitclr = lineclr
        if plotoption != 3:
            fitclr='r'
        xx, fity = self.updateFit(X, ax, x, clr=fitclr, plotoption=plotoption)
        return
Need a bare bones plotter that can plot any given ekin data
           Should then call this one in plotDatasets below and simplify
Need a bare bones plotter that can plot any given ekin data
Should then call this one in plotDatasets below and simplify
Need a bare bones plotter that can plot any given ekin data Should then call this one in plotDatasets below and simplify
def doPlot(self, ek, fitdata, options):
        x,y,a, xerr,yerr = ek.getAll()
        line = ax.scatter(x, y, marker='o')
        f = fitdata
        d=[]
        X = Fitting.makeFitter(f, zip(x,y))
        if X==None: return
        fitclr = lineclr
        if plotoption != 3:
            fitclr='r'
        xx, fity = self.updateFit(X, ax, x, clr=fitclr, plotoption=plotoption)
        return
def doPlot ( self , ek , fitdata , options ) : x , y , a , xerr , yerr = ek . getAll ( ) line = ax . scatter ( x , y , marker = 'o' ) f = fitdata d = [ ] X = Fitting . makeFitter ( f , zip ( x , y ) ) if X == None : return fitclr = lineclr if plotoption != 3 : fitclr = 'r' xx , fity = self . updateFit ( X , ax , x , clr = fitclr , plotoption = plotoption ) return
Need a bare bones plotter that can plot any given ekin data
Should then call this one in plotDatasets below and simplify
Need a bare bones plotter that can plot any given ekin data Should then call this one in plotDatasets below and simplify
"""Need a bare bones plotter that can plot any given ekin data
           Should then call this one in plotDatasets below and simplify""" #plotting fit should also be seperate? #we now use this model to draw the fit line
self
ek
fitdata
options