for p in ax.patches: values = '{:.0f}'.format(p.get_height()) x = p.get_x() + p.get_width()/2 y = p.get_height() ax.annotate(values, (x, y),ha='center', va ='bottom', fontsize = 10)
for p in ax.patches: values = '{:.0f}'.format(p.get_height()) x = p.get_x() + p.get_width()/2 y = p.get_height() ax.annotate(values, (x, y),ha='center', va ='bottom', fontsize = 10)