我有一个非常基本的绘图,我想添加当鼠标悬停在绘图上的数据点上时显示值的功能。
我用来创建折线图的代码如下:
df_all['count'] = pd.to_numeric(df_all['count']) cumulative = df_all['count'].cumsum() cumulative.plot() plt.plot() print(plt.show())
提前谢谢了
python plot matplotlib python-3.x
matplotlib ×1
plot ×1
python ×1
python-3.x ×1