You get it directly from the axes' patches: for p in ax.patches: ax.annotate(str(p.get_height()), (p.get_x() * 1.005, p.get_height() * 1.005)).
確定! 回上一頁