There are several options. You can use values ββfrom objects of objects of objects of a series, date or datetime from the Python standard datetime or pandas' Timestamp standard library to set the location of the x axis of the label on the time series graph.
import pandas as pd from pandas import Timestamp import datetime as dt import matplotlib.pyplot as plt s = pd.Series({Timestamp('2014-11-08 00:00:00'): 345, Timestamp('2014-11-09 00:00:00'): 678, Timestamp('2014-11-10 00:00:00'): 987, Timestamp('2014-11-11 00:00:00'): 258}) fig = plt.figure() ax = fig.gca() s.plot(ax=ax) i = 0 ax.text(s.index[i], s.iloc[i], "Hello") ax.text(dt.date(2014, 11, 9), 500, "World") ax.text(Timestamp("2014-11-10"), 777, "!!!") plt.show()

source share