PEATDB/Ekin/Base.py
def showfitResults(self, X, ax):
        """Show fit vars in a plot"""
        if X==None:
            return
        info = X.getResult()
        text=''
        bboxprops = {'facecolor':'lightyellow', 'alpha':0.9, 'pad':10, 'lw':1}
        for i in X.varnames:
            text += i+'='+str(round(info[i],3))+'\n'
        text += 'sse='+str(round(info['error'],3))+'\n'
        text += 'rmse='+str(round(info['rmse'],3))
        if len(ax.texts) >= 1:
            ax.texts[0].set_text(text)
        else:
            ax.text(.1, .7, text, transform=ax.transAxes, size=12,
                bbox=bboxprops)
        plt.draw()
        return
Show fit vars in a plot
Show fit vars in a plot
Show fit vars in a plot
def showfitResults(self, X, ax):
        if X==None:
            return
        info = X.getResult()
        text=''
        bboxprops = {'facecolor':'lightyellow', 'alpha':0.9, 'pad':10, 'lw':1}
        for i in X.varnames:
            text += i+'='+str(round(info[i],3))+'\n'
        text += 'sse='+str(round(info['error'],3))+'\n'
        text += 'rmse='+str(round(info['rmse'],3))
        if len(ax.texts) >= 1:
            ax.texts[0].set_text(text)
        else:
            ax.text(.1, .7, text, transform=ax.transAxes, size=12,
                bbox=bboxprops)
        plt.draw()
        return
def showfitResults ( self , X , ax ) : if X == None : return info = X . getResult ( ) text = '' bboxprops = { 'facecolor' : 'lightyellow' , 'alpha' : 0.9 , 'pad' : 10 , 'lw' : 1 } for i in X . varnames : text += i + '=' + str ( round ( info [ i ] , 3 ) ) + '\n' text += 'sse=' + str ( round ( info [ 'error' ] , 3 ) ) + '\n' text += 'rmse=' + str ( round ( info [ 'rmse' ] , 3 ) ) if len ( ax . texts ) >= 1 : ax . texts [ 0 ] . set_text ( text ) else : ax . text ( .1 , .7 , text , transform = ax . transAxes , size = 12 , bbox = bboxprops ) plt . draw ( ) return
Show fit vars in a plot
Show fit vars in a plot
"""Show fit vars in a plot"""
self
X
ax