将Motion Detector得到的Numpyarray处理成Bokeh图像
from capture import df #运行ploting 会运行capture
from bokeh.plotting import figure,show,output_file
p=figure(x_axis_type="datetime",height=100,width=500,sizing_mode="scale_both",title="Motion Graph")
q=p.quad(left=df['Start'],right=df["End"],bottom=0,top=1,color="green") #方框
output_file("Graph.html")
show(p)
去除y轴的坐标,去除格子
from capture import df #运行ploting 会运行capture
from bokeh.plotting import figure,show,output_file
p=figure(x_axis_type="datetime",height=100,width=500,sizing_mode="scale_both",title="Motion Graph")
#修改
p.yaxis.minor_tick_line_color=None #
p.yaxis[0].ticker.desired_num_ticks=1
q=p.quad(left=df['Start'],right=df["End"],bottom=0,top=