【发布时间】:2020-10-24 21:10:32
【问题描述】:
我有一个非常基本的绘图,我想为此添加在鼠标悬停在绘图上的数据点上时显示值的功能。
我用来创建折线图的代码如下:
df_all['count'] = pd.to_numeric(df_all['count'])
cumulative = df_all['count'].cumsum()
cumulative.plot()
plt.plot()
print(plt.show())
在此先感谢
【问题讨论】:
标签: python python-3.x matplotlib plot