The following code doesn\'t generate a graph:
import pandas
import numpy as np
from bokeh.plotting import figure, show, output_file
from bokeh.io import output_n
OK, as far as I can tell, this is what you want (using some project sample data, since you did not provide anything to run your code with):
from bokeh.plotting import figure, show
from bokeh.sampledata.commits import data
p = figure(x_axis_type="datetime", y_axis_type="datetime")
p.circle(x=data.index, y=data.index.time)
show(p)
The datetime
axis type, as the name suggests, treats the timestamps as datetimes. I.e., these are interpreted as hours of the day in the first day of the first year of Epoch. That's why the axis starts and ends with 1/01 and 1/02. You might want to use customize the tick formatter to display just the hours.
For reference, data
looks like this: