How to plot events on time on using matplotlib,plt.show()