backend/CRAFT-pytorch-master/DDM_results.py
def autolabelTess(rects):
        """Attach a text label above each bar in *rects*, displaying its height."""
        for rect in rects:
            height = rect.get_height()
            idx = 0
            for i in range(len(yTess)):
                if(yTess[i] == height):
                    idx = i
                    break

            ax.annotate('{}%'.format('%.0f'%(height*100/yDat[i])),
                        xy=(rect.get_x() + 0.13 + rect.get_width() / 2, height),
                        xytext=(0, 3),  # 3 points vertical offset
                        textcoords="offset points",
                        ha='center', va='bottom')
Attach a text label above each bar in *rects*, displaying its height.
Attach a text label above each bar in *rects*, displaying its height.
Attach a text label above each bar in * rects * displaying its height .
def autolabelTess(rects):
        for rect in rects:
            height = rect.get_height()
            idx = 0
            for i in range(len(yTess)):
                if(yTess[i] == height):
                    idx = i
                    break
            ax.annotate('{}%'.format('%.0f'%(height*100/yDat[i])),
                        xy=(rect.get_x() + 0.13 + rect.get_width() / 2, height),
                        xytext=(0, 3),  
                        textcoords="offset points",
                        ha='center', va='bottom')
def autolabelTess ( rects ) : for rect in rects : height = rect . get_height ( ) idx = 0 for i in range ( len ( yTess ) ) : if ( yTess [ i ] == height ) : idx = i break ax . annotate ( '{}%' . format ( '%.0f' % ( height * 100 / yDat [ i ] ) ) , xy = ( rect . get_x ( ) + 0.13 + rect . get_width ( ) / 2 , height ) , xytext = ( 0 , 3 ) , textcoords = "offset points" , ha = 'center' , va = 'bottom' )
Attach a text label above each bar in *rects*, displaying its height.
Attach a text label above each bar in * rects * displaying its height .
"""Attach a text label above each bar in *rects*, displaying its height.""" # 3 points vertical offset

rects