【发布时间】:2017-07-05 00:24:51
【问题描述】:
我使用以下代码绘制了条形图:
ax=max_runs.sort_values(ascending=False)[:10].plot.bar(width=0.8,color='R') 对于 ax.patches 中的 p: ax.annotate(format(p.get_height()), (p.get_x(), p.get_height()+0.25),color='B')
现在条形图上显示的值是浮点格式。如何将其更改为 int 格式?以及如何减小文本的大小?
【问题讨论】:
标签: python pandas matplotlib seaborn