In [33]:
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import pylab
In [2]:
dates = [
    datetime(2014, 2, 12, 14, 1, 35),
    datetime(2014, 2, 12, 13, 58, 13),
    datetime(2014, 2, 12, 12, 30, 53),
    datetime(2014, 2, 12, 12, 28, 58),
    datetime(2014, 2, 12, 12, 15, 29),
    datetime(2014, 2, 12, 12, 11, 28),
    datetime(2014, 2, 12, 12, 7, 12),
    datetime(2014, 2, 12, 12, 2, 45),
    datetime(2014, 2, 12, 11, 8, 54),
    datetime(2014, 2, 12, 11, 5, 38),
    datetime(2014, 2, 12, 11, 4, 19),
    datetime(2014, 2, 12, 11, 2, 3),
    datetime(2014, 2, 12, 10, 59, 34),
    datetime(2014, 2, 12, 10, 59, 3),
    datetime(2014, 2, 12, 10, 58, 36),
    datetime(2014, 2, 12, 10, 56, 50),
    datetime(2014, 2, 12, 10, 52, 27),
    datetime(2014, 2, 12, 10, 46, 40),
    datetime(2014, 2, 12, 8, 40, 36),
    datetime(2014, 2, 12, 8, 38, 21),
    datetime(2014, 2, 12, 8, 36, 46),
    datetime(2014, 2, 12, 8, 25, 38),
    datetime(2014, 2, 12, 8, 20, 31),
    datetime(2014, 2, 12, 7, 58, 16),
    datetime(2014, 2, 12, 7, 43, 47),
    datetime(2014, 2, 12, 7, 36, 39),
    datetime(2014, 2, 12, 6, 27, 16),
    datetime(2014, 2, 12, 6, 15, 35),
    datetime(2014, 2, 12, 6, 11, 42),
    datetime(2014, 2, 12, 6, 8, 12),
    datetime(2014, 2, 12, 5, 56, 51),
    datetime(2014, 2, 12, 5, 51, 41),
    datetime(2014, 2, 12, 5, 42, 17),
    datetime(2014, 2, 12, 5, 38, 16),
    datetime(2014, 2, 12, 5, 37, 9),
    datetime(2014, 2, 12, 5, 33, 40),
    datetime(2014, 2, 12, 3, 58, 57),
    datetime(2014, 2, 12, 3, 44, 3),
    datetime(2014, 2, 12, 3, 38, 27),
    datetime(2014, 2, 12, 0, 49, 48),
    datetime(2014, 2, 12, 0, 47, 16),
    datetime(2014, 2, 12, 0, 30, 47),
    datetime(2014, 2, 11, 21, 52, 29),
    datetime(2014, 2, 11, 21, 43, 11),
    datetime(2014, 2, 11, 21, 38, 43),
    datetime(2014, 2, 11, 21, 38, 23),
    datetime(2014, 2, 11, 21, 37, 44),
    datetime(2014, 2, 11, 20, 51, 25),
    datetime(2014, 2, 11, 20, 47, 36),
    datetime(2014, 2, 11, 16, 23, 9),
    datetime(2014, 2, 11, 16, 21, 49),
    datetime(2014, 2, 11, 16, 20, 6),
    datetime(2014, 2, 11, 15, 53, 8),
    datetime(2014, 2, 11, 15, 50, 0),
    datetime(2014, 2, 11, 15, 47, 39),
    datetime(2014, 2, 11, 15, 45, 40),
    datetime(2014, 2, 11, 15, 42, 45),
]
In [46]:
fig = pylab.figure(figsize=(15, 2), dpi=150)
pylab.xlim([min(dates) - timedelta(0.2), max(dates) + timedelta(0.2)])
pylab.yticks([])
plt.scatter(dates, [1]*len(dates), 50, c='r', marker='o', alpha=0.35, linewidths=0)
Out[46]:
<matplotlib.collections.PathCollection at 0x7f2499a983d0>