x = [(datetime.datetime.now() + datetime.timedelta(hours=i)) for i in range(12)
    ]
y = [(i + random.gauss(0, 1)) for i, _ in enumerate(x)]
plt.scatter(x, y)
plt.gcf().autofmt_xdate()
plt.show()
Plotting time in Python with Matplotlib