In [1]:
import bokeh.plotting as bkp
import bokeh.objects as bko
bkp.output_notebook()
In [2]:
import datetime
start = datetime.datetime(2012, 1, 1, 0, 0)
end = datetime.datetime(2013, 1, 1, 0, 0)
In [3]:
bkp.figure(x_range=(start,end))
bkp.line([start,end],[1,5])
bkp.show()
In [4]:
import datetime
start = datetime.date(2012, 1, 1)
end = datetime.date(2013, 1, 1)
In [5]:
bkp.figure(x_range=(start,end))
bkp.line([start,end],[1,5])
bkp.show()
In [6]:
import numpy as np
start = np.datetime64('2012-01-01')
end = np.datetime64('2013-01-01')
In [7]:
bkp.figure(x_range=(start,end))
bkp.line([start,end],[1,5])
bkp.show()
In [8]:
import pandas as pd
start = pd.Timestamp('20120101')
end = pd.Timestamp('20130101')
In [9]:
bkp.figure(x_range=(start,end))
bkp.line([start,end],[1,5])
bkp.show()