def autolabel(rectangles):
 for rect in rectangles:
  height = rect.get_height()
  ax.text((rect.get_x() + (rect.get_width() / 2.0)), (1.05 * height), ('%.4f' % height), ha='center', va='bottom')

def autolabel ( rectangles ) : for rect in rectangles : height = rect . get_height ( ) ax . text ( ( rect . get_x ( ) + ( rect . get_width ( ) / 2.0 ) ) , ( 1.05 * height ) , ( '%.4f' % height ) , ha = 'center' , va = 'bottom' )
attach some text vi autolabel on rectangles .