Exemplo n.º 1
0
    def plotGuess(self,*args,**kwds):
        backupX = self.curve1.X
        backupY = self.curve1.Y
        self.curve1.Y = self.func1(self.packParamsGuess())
        Plottable.plot(self.curve1,*args,**kwds)
        self.curve1.Y = backupY

        backupX = self.curve2.X
        backupY = self.curve2.Y
        self.curve2.Y = self.func2(self.packParamsGuess())
        Plottable.plot(self.curve2,*args,**kwds)
        self.curve2.Y = backupY
Exemplo n.º 2
0
    def plotGuess(self, *args, **kwds):
        backupX = self.curve1.X
        backupY = self.curve1.Y
        self.curve1.Y = self.func1(self.packParamsGuess())
        Plottable.plot(self.curve1, *args, **kwds)
        self.curve1.Y = backupY

        backupX = self.curve2.X
        backupY = self.curve2.Y
        self.curve2.Y = self.func2(self.packParamsGuess())
        Plottable.plot(self.curve2, *args, **kwds)
        self.curve2.Y = backupY
Exemplo n.º 3
0
    def plot(self,plotNicely = False,nicePlotNpoints = 5e4,**kwds):
       # print "plotting fitter"
        if self.fitDone:
            if(plotNicely):
                back = self.Xdata
                min = self.Xdata.min()
                max = self.Xdata.max()
                span = max-min
                self.Xdata = numpy.arange(min,max,span/nicePlotNpoints)
                self.getYvalues(self.packParams())

            Plottable.plot(self,**kwds)
            if(plotNicely):
                self.Xdata = back
                self.getYvalues(self.packParams())
Exemplo n.º 4
0
    def plot(self, plotNicely=False, nicePlotNpoints=5e4, **kwds):
        # print "plotting fitter"
        if self.fitDone:
            if (plotNicely):
                back = self.Xdata
                min = self.Xdata.min()
                max = self.Xdata.max()
                span = max - min
                self.Xdata = numpy.arange(min, max, span / nicePlotNpoints)
                self.getYvalues(self.packParams())

            Plottable.plot(self, **kwds)
            if (plotNicely):
                self.Xdata = back
                self.getYvalues(self.packParams())
Exemplo n.º 5
0
 def __load__(self,f,cp):
     Plottable.__load__(self,f,cp)
Exemplo n.º 6
0
   def __init__(self,**kwds):
 #      loadSave.Saveable.__init__(self,**kwds)
       Plottable.__init__(self)
Exemplo n.º 7
0
 def getYrangeLine(self):
     [minFit,maxFit] = Plottable.getYrangeLine(self.parentCurve)
     [minPar,maxPar] = Plottable.getYrangeLine(self.parentCurve)
     return [min(minFit,minPar),max(maxFit,maxPar)]
Exemplo n.º 8
0
 def getYrangeLine(self):
     [minFit, maxFit] = Plottable.getYrangeLine(self.parentCurve)
     [minPar, maxPar] = Plottable.getYrangeLine(self.parentCurve)
     return [min(minFit, minPar), max(maxFit, maxPar)]
Exemplo n.º 9
0
 def __load__(self, f, cp):
     Plottable.__load__(self, f, cp)
Exemplo n.º 10
0
 def __init__(self, **kwds):
     #      loadSave.Saveable.__init__(self,**kwds)
     Plottable.__init__(self)