I have the code like this for the annotation
for p in ax.patches: ax.annotate("Total: %.1f" % p.get_width(), xy=(p.get_width(), p.get_y()+p.get_