1 Star 0 Fork 0

1991wangliang / Python-Motion-Detector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Graph.html 9.67 KB
一键复制 编辑 原始数据 按行查看 历史
Daniel Huang 提交于 2018-01-09 03:10 . hover feature implemented
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
<style>
html {
width: 100%;
height: 100%;
}
body {
width: 90%;
height: 100%;
margin: auto;
}
</style>
</head>
<body>
<div class="bk-root">
<div class="bk-plotdiv" id="b5cf341d-a267-42ac-9e1f-bd59ce0353c6"></div>
</div>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
var docs_json = {"add81ebb-5836-49f7-b3db-0bb5923e3910":{"roots":{"references":[{"attributes":{"callback":null},"id":"fcbad8d8-52af-419c-b848-01e275e5c136","type":"DataRange1d"},{"attributes":{"formatter":{"id":"b5e0907a-da8e-49a9-8eab-530fc563e72a","type":"DatetimeTickFormatter"},"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},"ticker":{"id":"3ce5f929-1a71-4755-9c7f-14cd4d784220","type":"DatetimeTicker"}},"id":"9eed7164-ccdc-4bcb-ae15-3b2622eb11dd","type":"DatetimeAxis"},{"attributes":{"bottom":{"value":0},"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"left":{"field":"Start"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"right":{"field":"End"},"top":{"value":1}},"id":"f405f08e-ddf3-4eec-bbdd-1fa2846736b2","type":"Quad"},{"attributes":{"callback":null,"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},"tooltips":[["Start","@Start_str"],["End","@End_str"]]},"id":"93e66383-b8cd-4b04-a977-288eb800f3cb","type":"HoverTool"},{"attributes":{"callback":null},"id":"59c93856-610d-4ecd-a110-21f3833c9e4f","type":"DataRange1d"},{"attributes":{"num_minor_ticks":5},"id":"3ce5f929-1a71-4755-9c7f-14cd4d784220","type":"DatetimeTicker"},{"attributes":{"bottom":{"value":0},"fill_color":{"value":"green"},"left":{"field":"Start"},"line_color":{"value":"green"},"right":{"field":"End"},"top":{"value":1}},"id":"8c6e3ef4-72d2-43ad-ab7f-34243d91973e","type":"Quad"},{"attributes":{"data_source":{"id":"ca0ad02f-0957-4445-b541-9f265adf834f","type":"ColumnDataSource"},"glyph":{"id":"8c6e3ef4-72d2-43ad-ab7f-34243d91973e","type":"Quad"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"f405f08e-ddf3-4eec-bbdd-1fa2846736b2","type":"Quad"},"selection_glyph":null},"id":"0a03adfb-813d-4f85-abee-95f8b1072d9b","type":"GlyphRenderer"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},"ticker":{"id":"3ce5f929-1a71-4755-9c7f-14cd4d784220","type":"DatetimeTicker"}},"id":"9b98363f-4133-454b-98d1-164dceb723d4","type":"Grid"},{"attributes":{"formatter":{"id":"afa13b2e-f0fa-4398-8b60-9c45fc82fbc6","type":"BasicTickFormatter"},"minor_tick_line_color":{"value":null},"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},"ticker":{"id":"9b4806dc-04e6-4f24-bb1f-b099336602fb","type":"BasicTicker"}},"id":"97ee0c62-b87b-4b67-9f1c-d35fcc244f02","type":"LinearAxis"},{"attributes":{"desired_num_ticks":1},"id":"9b4806dc-04e6-4f24-bb1f-b099336602fb","type":"BasicTicker"},{"attributes":{"plot":null,"text":"Motion Graph"},"id":"3bd5ea79-bca1-4895-a6cf-84e5163ffcf4","type":"Title"},{"attributes":{"dimension":1,"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},"ticker":{"id":"9b4806dc-04e6-4f24-bb1f-b099336602fb","type":"BasicTicker"}},"id":"c475993a-24dd-4e5d-816d-fb874922cb0f","type":"Grid"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"17025a01-14e7-4a25-a113-26e1b5e3f488","type":"BoxAnnotation"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"51bbb10e-b987-4c4b-b633-7f4e3144d399","type":"AdaptiveTicker"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"84bd127c-eadd-4947-8f0a-dc40a192a386","type":"PanTool"},{"attributes":{"days":[1,8,15,22]},"id":"97301f7c-d581-4e62-a1e3-054fc68e211d","type":"DaysTicker"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"939311bd-fa2a-4c04-8041-81e67d72c73f","type":"WheelZoomTool"},{"attributes":{"overlay":{"id":"17025a01-14e7-4a25-a113-26e1b5e3f488","type":"BoxAnnotation"},"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"41128c0f-b723-4f7f-b16f-fc160b2a685e","type":"BoxZoomTool"},{"attributes":{},"id":"afa13b2e-f0fa-4398-8b60-9c45fc82fbc6","type":"BasicTickFormatter"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"de1880c6-4654-4834-b7b2-add3467a804a","type":"SaveTool"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"e2dadcdd-fdf6-4809-83b0-22b96619683e","type":"ResetTool"},{"attributes":{"plot":{"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"}},"id":"d16c59cd-7649-414a-a3b6-8481611023b0","type":"HelpTool"},{"attributes":{},"id":"77fe0a96-9fdd-4ace-983c-1260f0f7e894","type":"ToolEvents"},{"attributes":{},"id":"b5e0907a-da8e-49a9-8eab-530fc563e72a","type":"DatetimeTickFormatter"},{"attributes":{"max_interval":500.0,"num_minor_ticks":0},"id":"0f3a2bab-aea4-487e-861e-461ec1ec6622","type":"AdaptiveTicker"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"166a93b9-3e09-4d7e-a3e7-89812aef9475","type":"AdaptiveTicker"},{"attributes":{"days":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"id":"0cbcc2b4-4836-4984-8926-d3acfa8d124f","type":"DaysTicker"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"2e699994-c087-4cbe-babf-9125b768bc68","type":"DaysTicker"},{"attributes":{"days":[1,15]},"id":"dfc9a316-dd6c-476e-b284-9f96ee68e2c2","type":"DaysTicker"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"b1492af2-cbcc-4a6d-aff8-21617a5933b2","type":"MonthsTicker"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"8bdff4cc-7aeb-434d-a5f1-6f4f2528e057","type":"MonthsTicker"},{"attributes":{"months":[0,4,8]},"id":"e8843904-7b9a-45de-8268-03165f41b3d0","type":"MonthsTicker"},{"attributes":{"below":[{"id":"9eed7164-ccdc-4bcb-ae15-3b2622eb11dd","type":"DatetimeAxis"}],"left":[{"id":"97ee0c62-b87b-4b67-9f1c-d35fcc244f02","type":"LinearAxis"}],"plot_height":100,"plot_width":500,"renderers":[{"id":"9eed7164-ccdc-4bcb-ae15-3b2622eb11dd","type":"DatetimeAxis"},{"id":"9b98363f-4133-454b-98d1-164dceb723d4","type":"Grid"},{"id":"97ee0c62-b87b-4b67-9f1c-d35fcc244f02","type":"LinearAxis"},{"id":"c475993a-24dd-4e5d-816d-fb874922cb0f","type":"Grid"},{"id":"17025a01-14e7-4a25-a113-26e1b5e3f488","type":"BoxAnnotation"},{"id":"0a03adfb-813d-4f85-abee-95f8b1072d9b","type":"GlyphRenderer"}],"sizing_mode":"scale_width","title":{"id":"3bd5ea79-bca1-4895-a6cf-84e5163ffcf4","type":"Title"},"tool_events":{"id":"77fe0a96-9fdd-4ace-983c-1260f0f7e894","type":"ToolEvents"},"toolbar":{"id":"80a04962-0a8b-4fff-9c0a-35430721bffd","type":"Toolbar"},"x_range":{"id":"fcbad8d8-52af-419c-b848-01e275e5c136","type":"DataRange1d"},"y_range":{"id":"59c93856-610d-4ecd-a110-21f3833c9e4f","type":"DataRange1d"}},"id":"18a4f8e4-e369-4070-a834-548581d2ba4b","subtype":"Figure","type":"Plot"},{"attributes":{"months":[0,6]},"id":"654adb0a-e880-48d9-959f-b8ddbc55e976","type":"MonthsTicker"},{"attributes":{},"id":"045cba48-dfee-4a11-8905-b70ae857e967","type":"YearsTicker"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"84bd127c-eadd-4947-8f0a-dc40a192a386","type":"PanTool"},{"id":"939311bd-fa2a-4c04-8041-81e67d72c73f","type":"WheelZoomTool"},{"id":"41128c0f-b723-4f7f-b16f-fc160b2a685e","type":"BoxZoomTool"},{"id":"de1880c6-4654-4834-b7b2-add3467a804a","type":"SaveTool"},{"id":"e2dadcdd-fdf6-4809-83b0-22b96619683e","type":"ResetTool"},{"id":"d16c59cd-7649-414a-a3b6-8481611023b0","type":"HelpTool"},{"id":"93e66383-b8cd-4b04-a977-288eb800f3cb","type":"HoverTool"}]},"id":"80a04962-0a8b-4fff-9c0a-35430721bffd","type":"Toolbar"},{"attributes":{"callback":null,"column_names":["Start","End","Start_str","End_str","index"],"data":{"End":{"__ndarray__":"xxM7G44NdkItrqQbjg12QvKQ+BuODXZC","dtype":"float64","shape":[3]},"End_str":["2018-01-09 03:05:58","2018-01-09 03:06:00","2018-01-09 03:06:01"],"Start":{"__ndarray__":"i1AFG44NdkLnqWIbjg12QgSSzRuODXZC","dtype":"float64","shape":[3]},"Start_str":["2018-01-09 03:05:57","2018-01-09 03:05:59","2018-01-09 03:06:00"],"index":[0,1,2]}},"id":"ca0ad02f-0957-4445-b541-9f265adf834f","type":"ColumnDataSource"}],"root_ids":["18a4f8e4-e369-4070-a834-548581d2ba4b"]},"title":"Bokeh Application","version":"0.12.5"}};
var render_items = [{"docid":"add81ebb-5836-49f7-b3db-0bb5923e3910","elementid":"b5cf341d-a267-42ac-9e1f-bd59ce0353c6","modelid":"18a4f8e4-e369-4070-a834-548581d2ba4b"}];
Bokeh.embed.embed_items(docs_json, render_items);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
</script>
</body>
</html>
1
https://gitee.com/wangliang1991/Python-Motion-Detector.git
git@gitee.com:wangliang1991/Python-Motion-Detector.git
wangliang1991
Python-Motion-Detector
Python-Motion-Detector
master

搜索帮助