Skip to content

Instantly share code, notes, and snippets.

@marcusmueller
Created May 28, 2022 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusmueller/9a190d80a7ef42a5b27677553ebcff6f to your computer and use it in GitHub Desktop.
Save marcusmueller/9a190d80a7ef42a5b27677553ebcff6f to your computer and use it in GitHub Desktop.
<!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.4.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.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="a83d2211-afc4-4109-b531-48558614c399"></div>
</div>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
var docs_json = {"e5a1b91a-8cac-4f93-b68d-e883cadfcd5f":{"roots":{"references":[{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"0f81daf7-cb06-4bd2-9378-5f42c77f8993","type":"PanTool"},{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"dbc1da87-446d-4d0c-88e1-a148192f05a1","type":"SaveTool"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"34e02732-ae14-42d7-8342-12eecdb1de4c","type":"HelpTool"},{"attributes":{"plot":null,"text":""},"id":"20707619-1938-4da2-bec9-e4550333a2bd","type":"Title"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"2d0bdf0a-2986-48c2-b842-ab3fe89c9024","type":"PanTool"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"5475916f-a1fe-4a58-99c9-1557c58f8089","type":"WheelZoomTool"},{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"30ec9627-927f-415e-a257-d1660fa1528e","type":"WheelZoomTool"},{"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":"e75cceb3-56d9-41b2-b61f-17772770f1c2","type":"BoxAnnotation"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"3faad5c4-b897-48cd-a652-c750f39c37bb","type":"ResetTool"},{"attributes":{},"id":"7bbf6178-0578-403c-bdbd-f70015ee1602","type":"BasicTickFormatter"},{"attributes":{},"id":"f6173bd0-49c1-4be3-87a5-eb6b89309278","type":"BasicTickFormatter"},{"attributes":{},"id":"03058362-7134-4dbf-9734-8f816f9e6393","type":"BasicTicker"},{"attributes":{},"id":"620fcb1b-ba27-4cd2-b40b-6947d56cc3b1","type":"BasicTickFormatter"},{"attributes":{"formatter":{"id":"2cb74f86-8fa7-4620-a495-61adb830b2df","type":"BasicTickFormatter"},"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"},"ticker":{"id":"a725d821-50ff-4ccb-af50-a1c35aab8d42","type":"BasicTicker"}},"id":"5d0da213-a0f5-4ea3-8885-f08a14f7bd48","type":"LinearAxis"},{"attributes":{},"id":"b3675ce4-2e40-4bc9-b492-1166838dee73","type":"BasicTicker"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"},"ticker":{"id":"a725d821-50ff-4ccb-af50-a1c35aab8d42","type":"BasicTicker"}},"id":"9395a008-c210-422c-b562-8ea769132a83","type":"Grid"},{"attributes":{"formatter":{"id":"f6173bd0-49c1-4be3-87a5-eb6b89309278","type":"BasicTickFormatter"},"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"},"ticker":{"id":"4ba5c865-43b3-4057-b9d0-16eeff495c2f","type":"BasicTicker"}},"id":"6091e76b-a40f-4b8a-8a8a-8964449357ae","type":"LinearAxis"},{"attributes":{},"id":"1870a93c-48f3-4b7d-b700-bd6074e6eac6","type":"ToolEvents"},{"attributes":{"fill_alpha":{"value":0.5},"fill_color":{"value":"navy"},"line_alpha":{"value":0.5},"line_color":{"value":"navy"},"size":{"units":"screen","value":20},"x":{"field":"x"},"y":{"field":"y"}},"id":"6c67b022-5f2e-4683-805c-2bc2f48ec15e","type":"Circle"},{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"},"ticker":{"id":"b3675ce4-2e40-4bc9-b492-1166838dee73","type":"BasicTicker"}},"id":"80314a48-2f8e-4c83-844d-7cb4e25eb4d6","type":"Grid"},{"attributes":{"callback":null},"id":"93179bbe-0ce8-41fc-beae-a2a33365bd1d","type":"DataRange1d"},{"attributes":{"formatter":{"id":"7bbf6178-0578-403c-bdbd-f70015ee1602","type":"BasicTickFormatter"},"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"},"ticker":{"id":"b3675ce4-2e40-4bc9-b492-1166838dee73","type":"BasicTicker"}},"id":"27770390-515b-423e-9cd2-2d6c3dbae5a0","type":"LinearAxis"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":[1,2,3,4,5],"y":[6,7,2,4,5]}},"id":"ce58de4d-0ef2-43cf-b15a-23d431781c1a","type":"ColumnDataSource"},{"attributes":{"below":[{"id":"27770390-515b-423e-9cd2-2d6c3dbae5a0","type":"LinearAxis"}],"left":[{"id":"11a71d7d-a7ed-4a42-8fee-6a14f21660a0","type":"LinearAxis"}],"plot_height":400,"plot_width":400,"renderers":[{"id":"27770390-515b-423e-9cd2-2d6c3dbae5a0","type":"LinearAxis"},{"id":"80314a48-2f8e-4c83-844d-7cb4e25eb4d6","type":"Grid"},{"id":"11a71d7d-a7ed-4a42-8fee-6a14f21660a0","type":"LinearAxis"},{"id":"6ee3fdee-e4b9-4284-b1e8-56320448beec","type":"Grid"},{"id":"e75cceb3-56d9-41b2-b61f-17772770f1c2","type":"BoxAnnotation"},{"id":"207ced0f-127c-48f7-b3c7-71296d4872db","type":"GlyphRenderer"}],"title":{"id":"1dea4110-0e0b-4373-a002-96b69662fae6","type":"Title"},"tool_events":{"id":"b83f6fed-546f-4788-bd5e-f0e2da49d491","type":"ToolEvents"},"toolbar":{"id":"b04da4a4-d5c6-4b6c-9acc-45e8d42b5164","type":"Toolbar"},"x_range":{"id":"e0e541d4-6ffd-4348-aedc-20d08eafbc5a","type":"DataRange1d"},"y_range":{"id":"8b347f0f-7801-407a-a918-3683a083da53","type":"DataRange1d"}},"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"},{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"ecf11ed0-858f-4f59-ace5-0e0606fb382e","type":"HelpTool"},{"attributes":{"plot":null,"text":""},"id":"1dea4110-0e0b-4373-a002-96b69662fae6","type":"Title"},{"attributes":{"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"8307d247-8764-4dad-8a41-8486b3a4dbe9","type":"ResetTool"},{"attributes":{"overlay":{"id":"a70eeef8-ce3e-4fab-ac14-b1b9dec85cb0","type":"BoxAnnotation"},"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"5eb77c44-6bc4-4c6b-bc13-e09e413ec2d5","type":"BoxZoomTool"},{"attributes":{"callback":null},"id":"e0e541d4-6ffd-4348-aedc-20d08eafbc5a","type":"DataRange1d"},{"attributes":{"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"5e8a1293-3590-4fba-8522-d52f48cb0ed2","type":"Line"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"0f81daf7-cb06-4bd2-9378-5f42c77f8993","type":"PanTool"},{"id":"30ec9627-927f-415e-a257-d1660fa1528e","type":"WheelZoomTool"},{"id":"0cdeebe8-b125-40fd-a55d-041edc0dd27b","type":"BoxZoomTool"},{"id":"dbc1da87-446d-4d0c-88e1-a148192f05a1","type":"SaveTool"},{"id":"8307d247-8764-4dad-8a41-8486b3a4dbe9","type":"ResetTool"},{"id":"ecf11ed0-858f-4f59-ace5-0e0606fb382e","type":"HelpTool"}]},"id":"b04da4a4-d5c6-4b6c-9acc-45e8d42b5164","type":"Toolbar"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"2d0bdf0a-2986-48c2-b842-ab3fe89c9024","type":"PanTool"},{"id":"5475916f-a1fe-4a58-99c9-1557c58f8089","type":"WheelZoomTool"},{"id":"5eb77c44-6bc4-4c6b-bc13-e09e413ec2d5","type":"BoxZoomTool"},{"id":"fcf5907e-73bc-4aec-8960-2b9752b6025c","type":"SaveTool"},{"id":"3faad5c4-b897-48cd-a652-c750f39c37bb","type":"ResetTool"},{"id":"34e02732-ae14-42d7-8342-12eecdb1de4c","type":"HelpTool"}]},"id":"63e71009-fef2-4df5-817f-c0d3d0e07c9a","type":"Toolbar"},{"attributes":{"below":[{"id":"5d0da213-a0f5-4ea3-8885-f08a14f7bd48","type":"LinearAxis"}],"left":[{"id":"6091e76b-a40f-4b8a-8a8a-8964449357ae","type":"LinearAxis"}],"plot_height":400,"plot_width":400,"renderers":[{"id":"5d0da213-a0f5-4ea3-8885-f08a14f7bd48","type":"LinearAxis"},{"id":"9395a008-c210-422c-b562-8ea769132a83","type":"Grid"},{"id":"6091e76b-a40f-4b8a-8a8a-8964449357ae","type":"LinearAxis"},{"id":"9ab69afa-834e-49fb-ae36-f7d600e84604","type":"Grid"},{"id":"a70eeef8-ce3e-4fab-ac14-b1b9dec85cb0","type":"BoxAnnotation"},{"id":"47c791eb-436d-4804-bc91-47c2c537fb8d","type":"GlyphRenderer"}],"title":{"id":"20707619-1938-4da2-bec9-e4550333a2bd","type":"Title"},"tool_events":{"id":"1870a93c-48f3-4b7d-b700-bd6074e6eac6","type":"ToolEvents"},"toolbar":{"id":"63e71009-fef2-4df5-817f-c0d3d0e07c9a","type":"Toolbar"},"x_range":{"id":"13d32b36-500e-4b4e-8798-51a0eeae0c04","type":"DataRange1d"},"y_range":{"id":"93179bbe-0ce8-41fc-beae-a2a33365bd1d","type":"DataRange1d"}},"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"f13c9cf7-0ca5-43ad-9d76-20bf987129a9","type":"Line"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"size":{"units":"screen","value":20},"x":{"field":"x"},"y":{"field":"y"}},"id":"7db42523-0c7a-4d60-928d-3858ebcd4df9","type":"Circle"},{"attributes":{},"id":"a725d821-50ff-4ccb-af50-a1c35aab8d42","type":"BasicTicker"},{"attributes":{"callback":null},"id":"13d32b36-500e-4b4e-8798-51a0eeae0c04","type":"DataRange1d"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":[1,2,3,4,5],"y":[6,7,2,4,5]}},"id":"940afb45-a720-4578-8a77-099b6822c1ae","type":"ColumnDataSource"},{"attributes":{},"id":"2cb74f86-8fa7-4620-a495-61adb830b2df","type":"BasicTickFormatter"},{"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":"a70eeef8-ce3e-4fab-ac14-b1b9dec85cb0","type":"BoxAnnotation"},{"attributes":{"data_source":{"id":"940afb45-a720-4578-8a77-099b6822c1ae","type":"ColumnDataSource"},"glyph":{"id":"5e8a1293-3590-4fba-8522-d52f48cb0ed2","type":"Line"},"hover_glyph":null,"nonselection_glyph":{"id":"f13c9cf7-0ca5-43ad-9d76-20bf987129a9","type":"Line"},"selection_glyph":null},"id":"207ced0f-127c-48f7-b3c7-71296d4872db","type":"GlyphRenderer"},{"attributes":{},"id":"b83f6fed-546f-4788-bd5e-f0e2da49d491","type":"ToolEvents"},{"attributes":{"overlay":{"id":"e75cceb3-56d9-41b2-b61f-17772770f1c2","type":"BoxAnnotation"},"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"}},"id":"0cdeebe8-b125-40fd-a55d-041edc0dd27b","type":"BoxZoomTool"},{"attributes":{"formatter":{"id":"620fcb1b-ba27-4cd2-b40b-6947d56cc3b1","type":"BasicTickFormatter"},"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"},"ticker":{"id":"03058362-7134-4dbf-9734-8f816f9e6393","type":"BasicTicker"}},"id":"11a71d7d-a7ed-4a42-8fee-6a14f21660a0","type":"LinearAxis"},{"attributes":{"callback":null},"id":"8b347f0f-7801-407a-a918-3683a083da53","type":"DataRange1d"},{"attributes":{"dimension":1,"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"},"ticker":{"id":"4ba5c865-43b3-4057-b9d0-16eeff495c2f","type":"BasicTicker"}},"id":"9ab69afa-834e-49fb-ae36-f7d600e84604","type":"Grid"},{"attributes":{"plot":{"id":"4d335d92-1b5d-4855-bce9-7074c32bdb9e","subtype":"Figure","type":"Plot"}},"id":"fcf5907e-73bc-4aec-8960-2b9752b6025c","type":"SaveTool"},{"attributes":{"dimension":1,"plot":{"id":"6526fdb5-db1c-4021-9985-40b1651fce4a","subtype":"Figure","type":"Plot"},"ticker":{"id":"03058362-7134-4dbf-9734-8f816f9e6393","type":"BasicTicker"}},"id":"6ee3fdee-e4b9-4284-b1e8-56320448beec","type":"Grid"},{"attributes":{"data_source":{"id":"ce58de4d-0ef2-43cf-b15a-23d431781c1a","type":"ColumnDataSource"},"glyph":{"id":"6c67b022-5f2e-4683-805c-2bc2f48ec15e","type":"Circle"},"hover_glyph":null,"nonselection_glyph":{"id":"7db42523-0c7a-4d60-928d-3858ebcd4df9","type":"Circle"},"selection_glyph":null},"id":"47c791eb-436d-4804-bc91-47c2c537fb8d","type":"GlyphRenderer"},{"attributes":{},"id":"4ba5c865-43b3-4057-b9d0-16eeff495c2f","type":"BasicTicker"}],"root_ids":["4d335d92-1b5d-4855-bce9-7074c32bdb9e","6526fdb5-db1c-4021-9985-40b1651fce4a"]},"title":"Bokeh Application","version":"0.12.4"}};
var render_items = [{"docid":"e5a1b91a-8cac-4f93-b68d-e883cadfcd5f","elementid":"a83d2211-afc4-4109-b531-48558614c399","modelid":"6526fdb5-db1c-4021-9985-40b1651fce4a"}];
Bokeh.embed.embed_items(docs_json, render_items);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment