-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlines.html
28 lines (22 loc) · 8.55 KB
/
lines.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>line plot example</title>
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-0.11.0.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.11.0.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<div class="plotdiv" id="afdb6451-d4d0-4df9-8b07-945f5ef37bfa"></div>
<script type="text/javascript">
Bokeh.$(function() {
var docs_json = {"35ff64cd-f194-4999-b213-7580b89c4318": {"roots": {"references": [{"id": "b55fda37-fc04-44e8-8fb0-261f42afb5c8", "type": "BoxAnnotation", "attributes": {"line_alpha": {"value": 1.0}, "right_units": "screen", "top_units": "screen", "plot": null, "left_units": "screen", "line_color": {"value": "black"}, "fill_alpha": {"value": 0.5}, "render_mode": "css", "line_width": {"value": 2}, "level": "overlay", "line_dash": [4, 4], "fill_color": {"value": "lightgrey"}, "bottom_units": "screen"}}, {"id": "af84c622-5665-4dd1-820f-681066cdbdce", "type": "PreviewSaveTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "a9a8096c-52b7-4a82-a811-72dc8300a713", "type": "LinearAxis", "attributes": {"axis_label": "yaxis", "ticker": {"id": "30ec2317-7dbb-4447-a0b4-a4281b3188de", "type": "BasicTicker"}, "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}, "formatter": {"id": "25e7e27b-e1ad-42bd-bca1-2678bb813569", "type": "BasicTickFormatter"}}}, {"id": "567c5a62-575c-46e2-9a26-ac39722fdc6c", "type": "Line", "attributes": {"line_alpha": {"value": 0.1}, "y": {"field": "y"}, "x": {"field": "x"}, "line_color": {"value": "#1f77b4"}, "line_width": {"value": 2}}}, {"id": "70501a5c-58b1-42ca-8810-b62bac09092d", "type": "ToolEvents", "attributes": {}}, {"id": "2af1c7a9-6c45-4212-af38-76401b9ad699", "type": "GlyphRenderer", "attributes": {"selection_glyph": null, "glyph": {"id": "08229097-d066-45fa-b873-f57a3c5af986", "type": "Line"}, "hover_glyph": null, "data_source": {"id": "d9d22f86-5eea-4d01-a4ed-aaf9394e8c82", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "d12756cd-ff4a-4c65-8e63-6612edaa6c41", "type": "Line"}}}, {"id": "e79e7435-45ca-4661-bd0c-467129bdbd04", "type": "ResetTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "e602693d-d6aa-4e98-b0ad-4a5a6b3fe5d1", "type": "BasicTicker", "attributes": {}}, {"id": "1b9c4e33-094f-4dbc-ac24-61b130c09a0b", "type": "ColumnDataSource", "attributes": {"callback": null, "column_names": ["x", "y"], "data": {"y": [6, 7, 2, 4, 5], "x": [1, 2, 3, 4, 5]}}}, {"id": "d12756cd-ff4a-4c65-8e63-6612edaa6c41", "type": "Line", "attributes": {"line_alpha": {"value": 0.1}, "y": {"field": "y"}, "x": {"field": "x"}, "line_color": {"value": "#1f77b4"}, "line_width": {"value": 10}}}, {"id": "e0d49038-1ea0-498c-8b65-d9443cdc3255", "type": "DataRange1d", "attributes": {"callback": null}}, {"id": "25e7e27b-e1ad-42bd-bca1-2678bb813569", "type": "BasicTickFormatter", "attributes": {}}, {"id": "0088c3b0-c049-44b7-8f95-d37e69a9f4a8", "type": "LinearAxis", "attributes": {"axis_label": "xaxis", "ticker": {"id": "e602693d-d6aa-4e98-b0ad-4a5a6b3fe5d1", "type": "BasicTicker"}, "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}, "formatter": {"id": "b96a805e-d5fd-4464-a7ee-3f405653b870", "type": "BasicTickFormatter"}}}, {"id": "08229097-d066-45fa-b873-f57a3c5af986", "type": "Line", "attributes": {"line_width": {"value": 10}, "y": {"field": "y"}, "line_color": {"value": "#1f77b4"}, "x": {"field": "x"}}}, {"id": "0d268889-05a3-409a-936a-8d50d8f1ce57", "type": "Grid", "attributes": {"ticker": {"id": "e602693d-d6aa-4e98-b0ad-4a5a6b3fe5d1", "type": "BasicTicker"}, "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "30ec2317-7dbb-4447-a0b4-a4281b3188de", "type": "BasicTicker", "attributes": {}}, {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot", "attributes": {"renderers": [{"id": "0088c3b0-c049-44b7-8f95-d37e69a9f4a8", "type": "LinearAxis"}, {"id": "0d268889-05a3-409a-936a-8d50d8f1ce57", "type": "Grid"}, {"id": "a9a8096c-52b7-4a82-a811-72dc8300a713", "type": "LinearAxis"}, {"id": "d7e38b19-833d-494f-9036-42ce6f34aa4d", "type": "Grid"}, {"id": "b55fda37-fc04-44e8-8fb0-261f42afb5c8", "type": "BoxAnnotation"}, {"id": "4dd14181-f1b7-4ef2-a0d9-9210fc638fcd", "type": "Legend"}, {"id": "2971a5af-4ce3-422a-935d-b012cb51ef54", "type": "GlyphRenderer"}, {"id": "2af1c7a9-6c45-4212-af38-76401b9ad699", "type": "GlyphRenderer"}], "tool_events": {"id": "70501a5c-58b1-42ca-8810-b62bac09092d", "type": "ToolEvents"}, "title": "simple line example", "x_range": {"id": "2b49dcf3-5ff9-4662-b191-0e6cb0c3e472", "type": "DataRange1d"}, "left": [{"id": "a9a8096c-52b7-4a82-a811-72dc8300a713", "type": "LinearAxis"}], "tools": [{"id": "5c61faef-503f-4d1d-b36c-43eb526d73b7", "type": "PanTool"}, {"id": "b6775cf7-fa92-4801-b2cf-50849e068514", "type": "WheelZoomTool"}, {"id": "a8ec2684-3e0f-4ebb-8382-33cc51e109cd", "type": "BoxZoomTool"}, {"id": "af84c622-5665-4dd1-820f-681066cdbdce", "type": "PreviewSaveTool"}, {"id": "294e557b-9e8c-4517-81c3-54fae4d45096", "type": "ResizeTool"}, {"id": "e79e7435-45ca-4661-bd0c-467129bdbd04", "type": "ResetTool"}, {"id": "338d5709-3cf6-4dea-99ff-93d36e8d7ce2", "type": "HelpTool"}], "below": [{"id": "0088c3b0-c049-44b7-8f95-d37e69a9f4a8", "type": "LinearAxis"}], "y_range": {"id": "e0d49038-1ea0-498c-8b65-d9443cdc3255", "type": "DataRange1d"}}}, {"id": "4dd14181-f1b7-4ef2-a0d9-9210fc638fcd", "type": "Legend", "attributes": {"legends": [["Temp", [{"id": "2971a5af-4ce3-422a-935d-b012cb51ef54", "type": "GlyphRenderer"}, {"id": "2af1c7a9-6c45-4212-af38-76401b9ad699", "type": "GlyphRenderer"}]]], "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "a8ec2684-3e0f-4ebb-8382-33cc51e109cd", "type": "BoxZoomTool", "attributes": {"overlay": {"id": "b55fda37-fc04-44e8-8fb0-261f42afb5c8", "type": "BoxAnnotation"}, "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "2b49dcf3-5ff9-4662-b191-0e6cb0c3e472", "type": "DataRange1d", "attributes": {"callback": null}}, {"id": "59a37a65-9eb5-4d66-aff7-294d4c06d9f6", "type": "Line", "attributes": {"line_width": {"value": 2}, "y": {"field": "y"}, "line_color": {"value": "#1f77b4"}, "x": {"field": "x"}}}, {"id": "294e557b-9e8c-4517-81c3-54fae4d45096", "type": "ResizeTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "338d5709-3cf6-4dea-99ff-93d36e8d7ce2", "type": "HelpTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "d9d22f86-5eea-4d01-a4ed-aaf9394e8c82", "type": "ColumnDataSource", "attributes": {"callback": null, "column_names": ["x", "y"], "data": {"y": [6, 7, 2, 4, 5], "x": [1, 2, 3, 4, 5]}}}, {"id": "b6775cf7-fa92-4801-b2cf-50849e068514", "type": "WheelZoomTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "2971a5af-4ce3-422a-935d-b012cb51ef54", "type": "GlyphRenderer", "attributes": {"selection_glyph": null, "glyph": {"id": "59a37a65-9eb5-4d66-aff7-294d4c06d9f6", "type": "Line"}, "hover_glyph": null, "data_source": {"id": "1b9c4e33-094f-4dbc-ac24-61b130c09a0b", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "567c5a62-575c-46e2-9a26-ac39722fdc6c", "type": "Line"}}}, {"id": "b96a805e-d5fd-4464-a7ee-3f405653b870", "type": "BasicTickFormatter", "attributes": {}}, {"id": "d7e38b19-833d-494f-9036-42ce6f34aa4d", "type": "Grid", "attributes": {"dimension": 1, "ticker": {"id": "30ec2317-7dbb-4447-a0b4-a4281b3188de", "type": "BasicTicker"}, "plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}, {"id": "5c61faef-503f-4d1d-b36c-43eb526d73b7", "type": "PanTool", "attributes": {"plot": {"id": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "subtype": "Figure", "type": "Plot"}}}], "root_ids": ["8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66"]}, "title": "Bokeh Application", "version": "0.11.0"}};
var render_items = [{"docid": "35ff64cd-f194-4999-b213-7580b89c4318", "modelid": "8c0703a7-b6ec-4ef3-9c8b-a400ba9e6f66", "elementid": "afdb6451-d4d0-4df9-8b07-945f5ef37bfa"}];
Bokeh.embed.embed_items(docs_json, render_items);
});
</script>
</body>
</html>