-
Notifications
You must be signed in to change notification settings - Fork 0
/
triangle.html
69 lines (61 loc) · 8.02 KB
/
triangle.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!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.10.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.10.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="4ba6d186-eb5c-42d4-8fd7-6b16d0ad5b03"></div>
</div>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = {"3cf5de69-944b-446c-a304-4087c64c52b5":{"roots":{"references":[{"attributes":{"data_source":{"id":"c77d8f5b-a889-4070-b8af-608e81d4aaf3","type":"ColumnDataSource"},"glyph":{"id":"ffda09ed-db93-469d-b153-ffc5440d0312","type":"Triangle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"496eac22-c453-4b5b-a49f-4893158db3ab","type":"Triangle"},"selection_glyph":null,"view":{"id":"b642017d-116e-47a7-a4d0-a3fad8239854","type":"CDSView"}},"id":"e30c08d7-d197-4be6-a1fe-87597ac86421","type":"GlyphRenderer"},{"attributes":{"callback":null},"id":"1fe26b35-117e-4186-b245-b706938764ea","type":"DataRange1d"},{"attributes":{"fill_color":{"value":"#1f77b4"},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"ffda09ed-db93-469d-b153-ffc5440d0312","type":"Triangle"},{"attributes":{},"id":"4156c1cd-1393-4479-962b-efad1ca1157e","type":"BasicTicker"},{"attributes":{},"id":"ebd230ed-0e86-4ee9-bc55-ea52448689fe","type":"PanTool"},{"attributes":{},"id":"b4f705d4-ac85-4f8c-9c07-0e341f93e69e","type":"HelpTool"},{"attributes":{"formatter":{"id":"55f0768a-765c-47b5-a57c-f6e7a0f53b0a","type":"BasicTickFormatter"},"plot":{"id":"2943fb4f-5330-4283-89af-21eef8fa21ed","subtype":"Figure","type":"Plot"},"ticker":{"id":"e05246f7-528a-4abb-aa08-e6e15321c030","type":"BasicTicker"}},"id":"276b7104-3076-486e-a1e7-af56c0218d5e","type":"LinearAxis"},{"attributes":{"plot":null,"text":""},"id":"c6d1b462-cb38-46f6-a3c8-ca9194e6eb73","type":"Title"},{"attributes":{"source":{"id":"c77d8f5b-a889-4070-b8af-608e81d4aaf3","type":"ColumnDataSource"}},"id":"b642017d-116e-47a7-a4d0-a3fad8239854","type":"CDSView"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"496eac22-c453-4b5b-a49f-4893158db3ab","type":"Triangle"},{"attributes":{"below":[{"id":"276b7104-3076-486e-a1e7-af56c0218d5e","type":"LinearAxis"}],"left":[{"id":"70d8a759-f6aa-41ab-b7d7-9b75461b1d79","type":"LinearAxis"}],"renderers":[{"id":"276b7104-3076-486e-a1e7-af56c0218d5e","type":"LinearAxis"},{"id":"6c299604-a6b8-43fa-9bb7-2118b4c91f8a","type":"Grid"},{"id":"70d8a759-f6aa-41ab-b7d7-9b75461b1d79","type":"LinearAxis"},{"id":"24ff136a-e8f2-4403-bf13-ff886c98b5e2","type":"Grid"},{"id":"05331686-5b9e-410d-bc41-b9fb6e41ac4b","type":"BoxAnnotation"},{"id":"e30c08d7-d197-4be6-a1fe-87597ac86421","type":"GlyphRenderer"}],"title":{"id":"c6d1b462-cb38-46f6-a3c8-ca9194e6eb73","type":"Title"},"toolbar":{"id":"3aa6d768-8d2c-4460-91c8-8887a2ecb4fa","type":"Toolbar"},"x_range":{"id":"1fe26b35-117e-4186-b245-b706938764ea","type":"DataRange1d"},"x_scale":{"id":"e23d1145-666c-46a0-bded-cbbf0c70ca0c","type":"LinearScale"},"y_range":{"id":"4d751dc7-003f-44e4-b67f-a610377cfe20","type":"DataRange1d"},"y_scale":{"id":"fadbeada-164d-4f69-bc49-339e805e0c48","type":"LinearScale"}},"id":"2943fb4f-5330-4283-89af-21eef8fa21ed","subtype":"Figure","type":"Plot"},{"attributes":{"callback":null},"id":"4d751dc7-003f-44e4-b67f-a610377cfe20","type":"DataRange1d"},{"attributes":{"plot":{"id":"2943fb4f-5330-4283-89af-21eef8fa21ed","subtype":"Figure","type":"Plot"},"ticker":{"id":"e05246f7-528a-4abb-aa08-e6e15321c030","type":"BasicTicker"}},"id":"6c299604-a6b8-43fa-9bb7-2118b4c91f8a","type":"Grid"},{"attributes":{},"id":"35bc6f6c-cb62-4aa4-8cd6-149d60f76bd7","type":"SaveTool"},{"attributes":{"formatter":{"id":"99c2db45-a485-4d9b-9463-eb40f1844ae3","type":"BasicTickFormatter"},"plot":{"id":"2943fb4f-5330-4283-89af-21eef8fa21ed","subtype":"Figure","type":"Plot"},"ticker":{"id":"4156c1cd-1393-4479-962b-efad1ca1157e","type":"BasicTicker"}},"id":"70d8a759-f6aa-41ab-b7d7-9b75461b1d79","type":"LinearAxis"},{"attributes":{},"id":"8ca639fa-e806-44f2-b7f0-481452729991","type":"WheelZoomTool"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"ebd230ed-0e86-4ee9-bc55-ea52448689fe","type":"PanTool"},{"id":"8ca639fa-e806-44f2-b7f0-481452729991","type":"WheelZoomTool"},{"id":"e47bd262-44ca-42df-8b0f-6cda33e93cfd","type":"BoxZoomTool"},{"id":"35bc6f6c-cb62-4aa4-8cd6-149d60f76bd7","type":"SaveTool"},{"id":"2e85c995-fa9c-4d79-abbb-a4a574c0c880","type":"ResetTool"},{"id":"b4f705d4-ac85-4f8c-9c07-0e341f93e69e","type":"HelpTool"}]},"id":"3aa6d768-8d2c-4460-91c8-8887a2ecb4fa","type":"Toolbar"},{"attributes":{},"id":"55f0768a-765c-47b5-a57c-f6e7a0f53b0a","type":"BasicTickFormatter"},{"attributes":{},"id":"99c2db45-a485-4d9b-9463-eb40f1844ae3","type":"BasicTickFormatter"},{"attributes":{},"id":"2e85c995-fa9c-4d79-abbb-a4a574c0c880","type":"ResetTool"},{"attributes":{},"id":"fadbeada-164d-4f69-bc49-339e805e0c48","type":"LinearScale"},{"attributes":{"overlay":{"id":"05331686-5b9e-410d-bc41-b9fb6e41ac4b","type":"BoxAnnotation"}},"id":"e47bd262-44ca-42df-8b0f-6cda33e93cfd","type":"BoxZoomTool"},{"attributes":{},"id":"e05246f7-528a-4abb-aa08-e6e15321c030","type":"BasicTicker"},{"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":"05331686-5b9e-410d-bc41-b9fb6e41ac4b","type":"BoxAnnotation"},{"attributes":{},"id":"e23d1145-666c-46a0-bded-cbbf0c70ca0c","type":"LinearScale"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":[1,2,3,4,5],"y":[6,7,8,9,10]}},"id":"c77d8f5b-a889-4070-b8af-608e81d4aaf3","type":"ColumnDataSource"},{"attributes":{"dimension":1,"plot":{"id":"2943fb4f-5330-4283-89af-21eef8fa21ed","subtype":"Figure","type":"Plot"},"ticker":{"id":"4156c1cd-1393-4479-962b-efad1ca1157e","type":"BasicTicker"}},"id":"24ff136a-e8f2-4403-bf13-ff886c98b5e2","type":"Grid"}],"root_ids":["2943fb4f-5330-4283-89af-21eef8fa21ed"]},"title":"Bokeh Application","version":"0.12.10"}};
var render_items = [{"docid":"3cf5de69-944b-446c-a304-4087c64c52b5","elementid":"4ba6d186-eb5c-42d4-8fd7-6b16d0ad5b03","modelid":"2943fb4f-5330-4283-89af-21eef8fa21ed"}];
root.Bokeh.embed.embed_items(docs_json, render_items);
}
if (root.Bokeh !== undefined) {
embed_document(root);
} else {
var attempts = 0;
var timer = setInterval(function(root) {
if (root.Bokeh !== undefined) {
embed_document(root);
clearInterval(timer);
}
attempts++;
if (attempts > 100) {
console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
clearInterval(timer);
}
}, 10, root)
}
})(window);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
</script>
</body>
</html>