from motion_detector import df
from bokeh.plotting import figure, show, output_file
from bokeh.models import HoverTool, ColumnDataSource


df["Start_string"]=df["Start"].dt.strftime("%Y-%m-%d %H:%M:%S")
df["End_string"]=df["End"].dt.strftime("%Y-%m-%d %H:%M:%S")



cds=ColumnDataSource(df)


p=figure(x_axis_type="datetime", height=100, width=500,  title="Motion Type")


#removing the values between 0 and 0.8 and grids in graph
p.yaxis.minor_tick_line_color=None
p.yaxis.ticker.desired_num_ticks=1

hover= HoverTool(tooltips=[("Start","@Start_string"),("End", "@End_string")])
p.add_tools(hover)



q=p.quad(left="Start", right="End", bottom=0, top=1, color="green", source=cds)

output_file("Graph1.html")
show(p)
d577766893e3de0b00e4e9e35587fc00db3cbedf
<mask token>

<mask token>
p.add_tools(hover)
<mask token>
output_file('Graph1.html')
show(p)

<mask token>
df['Start_string'] = df['Start'].dt.strftime('%Y-%m-%d %H:%M:%S')
df['End_string'] = df['End'].dt.strftime('%Y-%m-%d %H:%M:%S')
cds = ColumnDataSource(df)
p = figure(x_axis_type='datetime', height=100, width=500, title='Motion Type')
p.yaxis.minor_tick_line_color = None
p.yaxis.ticker.desired_num_ticks = 1
hover = HoverTool(tooltips=[('Start', '@Start_string'), ('End', '@End_string')]
    )
p.add_tools(hover)
q = p.quad(left='Start', right='End', bottom=0, top=1, color='green',
    source=cds)
output_file('Graph1.html')
show(p)

from motion_detector import df
from bokeh.plotting import figure, show, output_file
from bokeh.models import HoverTool, ColumnDataSource
df['Start_string'] = df['Start'].dt.strftime('%Y-%m-%d %H:%M:%S')
df['End_string'] = df['End'].dt.strftime('%Y-%m-%d %H:%M:%S')
cds = ColumnDataSource(df)
p = figure(x_axis_type='datetime', height=100, width=500, title='Motion Type')
p.yaxis.minor_tick_line_color = None
p.yaxis.ticker.desired_num_ticks = 1
hover = HoverTool(tooltips=[('Start', '@Start_string'), ('End', '@End_string')]
    )
p.add_tools(hover)
q = p.quad(left='Start', right='End', bottom=0, top=1, color='green',
    source=cds)
output_file('Graph1.html')
show(p)

from motion_detector import df
from bokeh.plotting import figure, show, output_file
from bokeh.models import HoverTool, ColumnDataSource


df["Start_string"]=df["Start"].dt.strftime("%Y-%m-%d %H:%M:%S")
df["End_string"]=df["End"].dt.strftime("%Y-%m-%d %H:%M:%S")



cds=ColumnDataSource(df)


p=figure(x_axis_type="datetime", height=100, width=500,  title="Motion Type")


#removing the values between 0 and 0.8 and grids in graph
p.yaxis.minor_tick_line_color=None
p.yaxis.ticker.desired_num_ticks=1

hover= HoverTool(tooltips=[("Start","@Start_string"),("End", "@End_string")])
p.add_tools(hover)



q=p.quad(left="Start", right="End", bottom=0, top=1, color="green", source=cds)

output_file("Graph1.html")
show(p)