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
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
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())
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())
def __load__(self,f,cp): Plottable.__load__(self,f,cp)
def __init__(self,**kwds): # loadSave.Saveable.__init__(self,**kwds) Plottable.__init__(self)
def getYrangeLine(self): [minFit,maxFit] = Plottable.getYrangeLine(self.parentCurve) [minPar,maxPar] = Plottable.getYrangeLine(self.parentCurve) return [min(minFit,minPar),max(maxFit,maxPar)]
def getYrangeLine(self): [minFit, maxFit] = Plottable.getYrangeLine(self.parentCurve) [minPar, maxPar] = Plottable.getYrangeLine(self.parentCurve) return [min(minFit, minPar), max(maxFit, maxPar)]
def __load__(self, f, cp): Plottable.__load__(self, f, cp)
def __init__(self, **kwds): # loadSave.Saveable.__init__(self,**kwds) Plottable.__init__(self)