【发布时间】:2015-12-20 17:48:57
【问题描述】:
Matplotlib 允许使用matplotlib.axes.Axes.text() 在绘图中设置文本。
我正在绘制 Pandas 系列数据,所以 x 轴是日期。
Datetime
2014-11-08 345
2014-11-09 678
2014-11-10 987
2014-11-11 258
Freq: W-SUN, dtype: int64
如果我想添加文本添加位置(x,y) = (2014-11-08, 345),我该怎么做? 2014-11-08 实际上不是 x 轴上的 x 值。我怎样才能找到这个位置?
【问题讨论】:
标签: python matplotlib plot