Axhline and axvline to plot horizontal and vertical lines in matplotlib. It is required to use the python datetime module a standard module. For details see the corresponding parameter in plot.