将注释添加到Matplotlib散点图

时间:2017-04-23 18:19:12

标签: python matplotlib annotations

我使用以下方法在散点图上绘制了Excel数据表中的第2和第3列:

df.plot.scatter(x="volume", y="Cost per m^3") 
plt.title("Volume vs. Cost Analysis", size = 16)
plt.ylim((0,80000))
plt.xlim((0.4e+7,1.6e+7))

如何使用第1列通讯员注释这些点?

0 个答案:

没有答案