我有这样的注释代码
for p in ax.patches:
ax.annotate("Total: %.1f" % p.get_width(), xy=(p.get_width(), p.get_y()+p.get_height()/2),
xytext=(0, 0), textcoords='offset points',ha='center', va="center")
但我希望文本注释像这样位于水平图表的底部(想象这是一个水平条形图):
我写的代码应该改变什么?