Skip to content

Instantly share code, notes, and snippets.

@tonyfast
Forked from ICBacon/bokehLinePlot.ipynb
Last active August 29, 2015 14:26
Show Gist options
  • Save tonyfast/5873e4bea3b040bf11e1 to your computer and use it in GitHub Desktop.
Save tonyfast/5873e4bea3b040bf11e1 to your computer and use it in GitHub Desktop.
My First Bokeh Line Plot
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<link rel="stylesheet" href="http://cdn.pydata.org/bokeh/release/bokeh-0.9.1.min.css" type="text/css" />
<script type="text/javascript" src="http://cdn.pydata.org/bokeh/release/bokeh-0.9.1.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
<script type="text/javascript">
Bokeh.$(function() {
var all_models = [{"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "ec65c794-4c0d-431d-99ba-acdccc0c7530"}, "id": "ec65c794-4c0d-431d-99ba-acdccc0c7530", "type": "ResizeTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "e95e6a7b-392a-4404-947e-9bd44f4394c1"}, "id": "e95e6a7b-392a-4404-947e-9bd44f4394c1", "type": "BoxZoomTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "f013a5d4-1baf-4ab2-85ba-8f2041f5ec17"}, "id": "f013a5d4-1baf-4ab2-85ba-8f2041f5ec17", "type": "ResetTool"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "787b0e38-3428-4cc7-a091-4f8870a17ac6"}, "id": "787b0e38-3428-4cc7-a091-4f8870a17ac6", "type": "BasicTickFormatter"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "f8531ba2-36b7-49c6-84f7-ebf8dc4e4a18"}, "id": "f8531ba2-36b7-49c6-84f7-ebf8dc4e4a18", "type": "WheelZoomTool"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "5e4c575d-ec85-42e3-8578-56c4d4b419db"}, "id": "5e4c575d-ec85-42e3-8578-56c4d4b419db", "type": "PreviewSaveTool"}, {"attributes": {"extra_x_ranges": {}, "below": [{"id": "bda68e4e-b7b5-447f-aca4-65ffe4566737", "type": "LinearAxis"}], "renderers": [{"id": "bda68e4e-b7b5-447f-aca4-65ffe4566737", "type": "LinearAxis"}, {"id": "43c6befa-47ae-461b-bc4d-31b8eb58c767", "type": "Grid"}, {"id": "10edf86a-e462-42b6-b3c4-99ac51246d31", "type": "LinearAxis"}, {"id": "5640bda9-5e6b-4514-86db-caff0d9df3e6", "type": "Grid"}, {"id": "db3088bb-3a28-47c2-86aa-71839ef09116", "type": "GlyphRenderer"}], "plot_width": 300, "left": [{"id": "10edf86a-e462-42b6-b3c4-99ac51246d31", "type": "LinearAxis"}], "id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "tags": [], "tools": [{"id": "1cb0879c-a5b3-4e63-81e7-f18902baeda7", "type": "PanTool"}, {"id": "f8531ba2-36b7-49c6-84f7-ebf8dc4e4a18", "type": "WheelZoomTool"}, {"id": "adee5c50-e1dd-4e59-9220-e37678161d78", "type": "BoxZoomTool"}, {"id": "53cc82d1-8a89-40bf-823f-aa1fd0726199", "type": "PreviewSaveTool"}, {"id": "ec65c794-4c0d-431d-99ba-acdccc0c7530", "type": "ResizeTool"}, {"id": "f83fa478-8204-4b08-a170-385457ed9ada", "type": "ResetTool"}, {"id": "e8e25ca2-bc09-4609-9ebc-e341f4ba7520", "type": "HelpTool"}], "above": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "plot_height": 300, "y_range": {"id": "6b4d9643-5bb5-47e2-a1ea-a4c9f9355b6a", "type": "DataRange1d"}, "tool_events": {"id": "9f05c5b0-50dc-40f9-b8e6-6ced53585445", "type": "ToolEvents"}, "x_range": {"id": "6ce71619-a1da-48c0-a11c-5816f18e240f", "type": "DataRange1d"}, "extra_y_ranges": {}, "right": []}, "id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 0, "id": "43c6befa-47ae-461b-bc4d-31b8eb58c767", "ticker": {"id": "c1a482e8-9d81-4c74-a908-9461f3d478a4", "type": "BasicTicker"}}, "id": "43c6befa-47ae-461b-bc4d-31b8eb58c767", "type": "Grid"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "geometries": [], "id": "7499140a-3c66-4f95-a5cc-6c59658a4f38"}, "id": "7499140a-3c66-4f95-a5cc-6c59658a4f38", "type": "ToolEvents"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "1cb0879c-a5b3-4e63-81e7-f18902baeda7"}, "id": "1cb0879c-a5b3-4e63-81e7-f18902baeda7", "type": "PanTool"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "3582d33a-ab28-4fd6-b68a-9bac5ab3ccc3"}, "id": "3582d33a-ab28-4fd6-b68a-9bac5ab3ccc3", "type": "BasicTickFormatter"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "3d1af5bb-e3d0-49b1-9daf-738b1827e9ec"}, "id": "3d1af5bb-e3d0-49b1-9daf-738b1827e9ec", "type": "BasicTickFormatter"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "ad3dafee-4711-4e25-92f8-e44d1907c33f"}, "id": "ad3dafee-4711-4e25-92f8-e44d1907c33f", "type": "BasicTicker"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "d6fb909d-dbd4-4f40-b7a0-922bb656f04b"}, "id": "d6fb909d-dbd4-4f40-b7a0-922bb656f04b", "type": "BasicTickFormatter"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "745aacfa-c0a7-4cc0-bd7e-d8f11fb398d1"}, "id": "745aacfa-c0a7-4cc0-bd7e-d8f11fb398d1", "type": "DataRange1d"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "d3359384-5ec1-4c27-ab76-44278abe63f4"}, "id": "d3359384-5ec1-4c27-ab76-44278abe63f4", "type": "WheelZoomTool"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "53cc82d1-8a89-40bf-823f-aa1fd0726199"}, "id": "53cc82d1-8a89-40bf-823f-aa1fd0726199", "type": "PreviewSaveTool"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 1, "id": "5640bda9-5e6b-4514-86db-caff0d9df3e6", "ticker": {"id": "7e52b784-4c22-48d5-b9b2-b81b95129dff", "type": "BasicTicker"}}, "id": "5640bda9-5e6b-4514-86db-caff0d9df3e6", "type": "Grid"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "3a5bb835-66ca-4baa-aa1d-dce827dca876", "type": "BasicTickFormatter"}, "ticker": {"id": "ad3dafee-4711-4e25-92f8-e44d1907c33f", "type": "BasicTicker"}, "id": "b7532218-ce7a-4f10-b392-9357daef4587"}, "id": "b7532218-ce7a-4f10-b392-9357daef4587", "type": "LinearAxis"}, {"attributes": {"line_width": {"value": 3}, "tags": [], "y": {"field": "y"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "x": {"field": "x"}, "line_color": {"value": "blue"}, "line_alpha": {"value": 1.0}, "id": "06d694cf-17a7-4e46-a2d5-567d883a32b4"}, "id": "06d694cf-17a7-4e46-a2d5-567d883a32b4", "type": "Line"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "126c8a02-7747-4113-9d35-a467e5b6177d"}, "id": "126c8a02-7747-4113-9d35-a467e5b6177d", "type": "DataRange1d"}, {"attributes": {"callback": null, "tags": [], "column_names": ["x", "y"], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "selected": {"1d": {"indices": []}, "0d": {"flag": false, "indices": []}, "2d": {"indices": []}}, "data": {"x": [0, 1, 2, 3], "y": [0, 1, 4, 9]}, "id": "49372b5b-c9a4-40e6-a283-1c75daee7c90"}, "id": "49372b5b-c9a4-40e6-a283-1c75daee7c90", "type": "ColumnDataSource"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "46f5fabd-d821-4a4f-aefa-7d5688a2b08b", "type": "BasicTickFormatter"}, "ticker": {"id": "c1a482e8-9d81-4c74-a908-9461f3d478a4", "type": "BasicTicker"}, "id": "bda68e4e-b7b5-447f-aca4-65ffe4566737"}, "id": "bda68e4e-b7b5-447f-aca4-65ffe4566737", "type": "LinearAxis"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "6b4d9643-5bb5-47e2-a1ea-a4c9f9355b6a"}, "id": "6b4d9643-5bb5-47e2-a1ea-a4c9f9355b6a", "type": "DataRange1d"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "eb8cfad3-32c5-4bc4-9014-6386e947c960"}, "id": "eb8cfad3-32c5-4bc4-9014-6386e947c960", "type": "PanTool"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "b05b3ab6-1b98-4a42-89d1-279d628b32f8"}, "id": "b05b3ab6-1b98-4a42-89d1-279d628b32f8", "type": "BasicTicker"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "3582d33a-ab28-4fd6-b68a-9bac5ab3ccc3", "type": "BasicTickFormatter"}, "ticker": {"id": "7e52b784-4c22-48d5-b9b2-b81b95129dff", "type": "BasicTicker"}, "id": "10edf86a-e462-42b6-b3c4-99ac51246d31"}, "id": "10edf86a-e462-42b6-b3c4-99ac51246d31", "type": "LinearAxis"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "6ce71619-a1da-48c0-a11c-5816f18e240f"}, "id": "6ce71619-a1da-48c0-a11c-5816f18e240f", "type": "DataRange1d"}, {"attributes": {"callback": null, "tags": [], "column_names": ["x", "y"], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "selected": {"1d": {"indices": []}, "0d": {"flag": false, "indices": []}, "2d": {"indices": []}}, "data": {"x": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "y": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}, "id": "3ee5f89c-1c1f-4731-9891-23647871c28f"}, "id": "3ee5f89c-1c1f-4731-9891-23647871c28f", "type": "ColumnDataSource"}, {"attributes": {"tags": [], "nonselection_glyph": {"id": "be97e731-8a45-46e7-ba9b-0c5439723916", "type": "Line"}, "selection_glyph": null, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "data_source": {"id": "3ee5f89c-1c1f-4731-9891-23647871c28f", "type": "ColumnDataSource"}, "id": "db3088bb-3a28-47c2-86aa-71839ef09116", "glyph": {"id": "420a762e-8fdf-422d-adbf-b410809b07e8", "type": "Line"}}, "id": "db3088bb-3a28-47c2-86aa-71839ef09116", "type": "GlyphRenderer"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "72662c57-7f95-4a49-8a8c-59b091604f69"}, "id": "72662c57-7f95-4a49-8a8c-59b091604f69", "type": "BoxZoomTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 0, "id": "69582198-7892-4dc4-8b63-2140e85ddada", "ticker": {"id": "92dc4fa9-c70f-4594-b7e0-617ac7177917", "type": "BasicTicker"}}, "id": "69582198-7892-4dc4-8b63-2140e85ddada", "type": "Grid"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "9ac87155-98e1-484f-8948-f9aa3308df47"}, "id": "9ac87155-98e1-484f-8948-f9aa3308df47", "type": "ResizeTool"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "92dc4fa9-c70f-4594-b7e0-617ac7177917"}, "id": "92dc4fa9-c70f-4594-b7e0-617ac7177917", "type": "BasicTicker"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "children": [{"id": "643c4687-9dae-4a55-860b-511399eb1e65", "type": "VBox"}], "id": "24c784dc-d216-4bb0-a9ef-c92f2af647ce"}, "id": "24c784dc-d216-4bb0-a9ef-c92f2af647ce", "type": "PlotContext"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "c1a482e8-9d81-4c74-a908-9461f3d478a4"}, "id": "c1a482e8-9d81-4c74-a908-9461f3d478a4", "type": "BasicTicker"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "3214791f-4dd2-4b75-ab27-5708665f029e"}, "id": "3214791f-4dd2-4b75-ab27-5708665f029e", "type": "DataRange1d"}, {"attributes": {"line_width": {"value": 3}, "tags": [], "y": {"field": "y"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "x": {"field": "x"}, "line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "id": "79efc747-753b-46c6-b787-6a4972f2f8cb"}, "id": "79efc747-753b-46c6-b787-6a4972f2f8cb", "type": "Line"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "5c3d847e-a7ab-4088-9d1d-470eb031be18"}, "id": "5c3d847e-a7ab-4088-9d1d-470eb031be18", "type": "PanTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "d6fb909d-dbd4-4f40-b7a0-922bb656f04b", "type": "BasicTickFormatter"}, "ticker": {"id": "b05b3ab6-1b98-4a42-89d1-279d628b32f8", "type": "BasicTicker"}, "id": "f6590e4e-fe6a-4ad5-9fdd-047440166e0b"}, "id": "f6590e4e-fe6a-4ad5-9fdd-047440166e0b", "type": "LinearAxis"}, {"attributes": {"extra_x_ranges": {}, "below": [{"id": "b7532218-ce7a-4f10-b392-9357daef4587", "type": "LinearAxis"}], "renderers": [{"id": "b7532218-ce7a-4f10-b392-9357daef4587", "type": "LinearAxis"}, {"id": "6f3ca3d9-0ed5-429e-b926-044cb17f5427", "type": "Grid"}, {"id": "b4c93d4f-1988-4a14-a766-f451fff9405a", "type": "LinearAxis"}, {"id": "68facb2f-2a81-4292-a2de-db2bf0f388f8", "type": "Grid"}], "y_range": {"id": "3214791f-4dd2-4b75-ab27-5708665f029e", "type": "DataRange1d"}, "left": [{"id": "b4c93d4f-1988-4a14-a766-f451fff9405a", "type": "LinearAxis"}], "id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "tags": [], "tools": [{"id": "eb8cfad3-32c5-4bc4-9014-6386e947c960", "type": "PanTool"}, {"id": "d3359384-5ec1-4c27-ab76-44278abe63f4", "type": "WheelZoomTool"}, {"id": "72662c57-7f95-4a49-8a8c-59b091604f69", "type": "BoxZoomTool"}, {"id": "5e4c575d-ec85-42e3-8578-56c4d4b419db", "type": "PreviewSaveTool"}, {"id": "9ac87155-98e1-484f-8948-f9aa3308df47", "type": "ResizeTool"}, {"id": "08966705-05b8-453a-861b-46279682f15b", "type": "ResetTool"}, {"id": "dc2ee060-c0e3-4870-bbbf-41c350e00834", "type": "HelpTool"}], "above": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "tool_events": {"id": "7499140a-3c66-4f95-a5cc-6c59658a4f38", "type": "ToolEvents"}, "x_range": {"id": "5cd75817-43d3-4132-864f-22978e08ad9b", "type": "DataRange1d"}, "extra_y_ranges": {}, "right": []}, "id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "3d1af5bb-e3d0-49b1-9daf-738b1827e9ec", "type": "BasicTickFormatter"}, "ticker": {"id": "811df4e2-75b2-4e04-9579-b748a49c7d76", "type": "BasicTicker"}, "id": "b4c93d4f-1988-4a14-a766-f451fff9405a"}, "id": "b4c93d4f-1988-4a14-a766-f451fff9405a", "type": "LinearAxis"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "bcc7a8da-11f9-4858-926e-a56cc5ffda22"}, "id": "bcc7a8da-11f9-4858-926e-a56cc5ffda22", "type": "WheelZoomTool"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 1, "id": "68facb2f-2a81-4292-a2de-db2bf0f388f8", "ticker": {"id": "811df4e2-75b2-4e04-9579-b748a49c7d76", "type": "BasicTicker"}}, "id": "68facb2f-2a81-4292-a2de-db2bf0f388f8", "type": "Grid"}, {"attributes": {"tags": [], "nonselection_glyph": {"id": "79efc747-753b-46c6-b787-6a4972f2f8cb", "type": "Line"}, "selection_glyph": null, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "data_source": {"id": "49372b5b-c9a4-40e6-a283-1c75daee7c90", "type": "ColumnDataSource"}, "id": "ab0ce4bb-b236-4cbc-8d62-991455e6dace", "glyph": {"id": "06d694cf-17a7-4e46-a2d5-567d883a32b4", "type": "Line"}}, "id": "ab0ce4bb-b236-4cbc-8d62-991455e6dace", "type": "GlyphRenderer"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimensions": ["width", "height"], "id": "adee5c50-e1dd-4e59-9220-e37678161d78"}, "id": "adee5c50-e1dd-4e59-9220-e37678161d78", "type": "BoxZoomTool"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "3a5bb835-66ca-4baa-aa1d-dce827dca876"}, "id": "3a5bb835-66ca-4baa-aa1d-dce827dca876", "type": "BasicTickFormatter"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "46f5fabd-d821-4a4f-aefa-7d5688a2b08b"}, "id": "46f5fabd-d821-4a4f-aefa-7d5688a2b08b", "type": "BasicTickFormatter"}, {"attributes": {"extra_x_ranges": {}, "below": [{"id": "ba391400-d60e-4f1a-a027-05e73aef9ca6", "type": "LinearAxis"}], "renderers": [{"id": "ba391400-d60e-4f1a-a027-05e73aef9ca6", "type": "LinearAxis"}, {"id": "69582198-7892-4dc4-8b63-2140e85ddada", "type": "Grid"}, {"id": "f6590e4e-fe6a-4ad5-9fdd-047440166e0b", "type": "LinearAxis"}, {"id": "cbcf124c-75cd-4626-b677-9fe01505853e", "type": "Grid"}, {"id": "ab0ce4bb-b236-4cbc-8d62-991455e6dace", "type": "GlyphRenderer"}], "plot_width": 300, "left": [{"id": "f6590e4e-fe6a-4ad5-9fdd-047440166e0b", "type": "LinearAxis"}], "id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "tags": [], "tools": [{"id": "5c3d847e-a7ab-4088-9d1d-470eb031be18", "type": "PanTool"}, {"id": "bcc7a8da-11f9-4858-926e-a56cc5ffda22", "type": "WheelZoomTool"}, {"id": "e95e6a7b-392a-4404-947e-9bd44f4394c1", "type": "BoxZoomTool"}, {"id": "bda972f7-04fd-45f6-86b7-b26928bad79d", "type": "PreviewSaveTool"}, {"id": "0e9f4c1c-2144-467f-938f-edbe92ed4b51", "type": "ResizeTool"}, {"id": "f013a5d4-1baf-4ab2-85ba-8f2041f5ec17", "type": "ResetTool"}, {"id": "d1abfb61-3924-4ee7-84c9-ea33c8be0d80", "type": "HelpTool"}], "above": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "plot_height": 300, "y_range": {"id": "745aacfa-c0a7-4cc0-bd7e-d8f11fb398d1", "type": "DataRange1d"}, "tool_events": {"id": "f9a94c52-9f12-4eb1-8d27-77487b28f998", "type": "ToolEvents"}, "x_range": {"id": "126c8a02-7747-4113-9d35-a467e5b6177d", "type": "DataRange1d"}, "extra_y_ranges": {}, "right": []}, "id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "7e52b784-4c22-48d5-b9b2-b81b95129dff"}, "id": "7e52b784-4c22-48d5-b9b2-b81b95129dff", "type": "BasicTicker"}, {"attributes": {"tags": [], "y": {"field": "y"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "x": {"field": "x"}, "line_color": {"value": "red"}, "line_alpha": {"value": 1.0}, "id": "420a762e-8fdf-422d-adbf-b410809b07e8"}, "id": "420a762e-8fdf-422d-adbf-b410809b07e8", "type": "Line"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "dc2ee060-c0e3-4870-bbbf-41c350e00834"}, "id": "dc2ee060-c0e3-4870-bbbf-41c350e00834", "type": "HelpTool"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "geometries": [], "id": "f9a94c52-9f12-4eb1-8d27-77487b28f998"}, "id": "f9a94c52-9f12-4eb1-8d27-77487b28f998", "type": "ToolEvents"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 0, "id": "6f3ca3d9-0ed5-429e-b926-044cb17f5427", "ticker": {"id": "ad3dafee-4711-4e25-92f8-e44d1907c33f", "type": "BasicTicker"}}, "id": "6f3ca3d9-0ed5-429e-b926-044cb17f5427", "type": "Grid"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "f83fa478-8204-4b08-a170-385457ed9ada"}, "id": "f83fa478-8204-4b08-a170-385457ed9ada", "type": "ResetTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "formatter": {"id": "787b0e38-3428-4cc7-a091-4f8870a17ac6", "type": "BasicTickFormatter"}, "ticker": {"id": "92dc4fa9-c70f-4594-b7e0-617ac7177917", "type": "BasicTicker"}, "id": "ba391400-d60e-4f1a-a027-05e73aef9ca6"}, "id": "ba391400-d60e-4f1a-a027-05e73aef9ca6", "type": "LinearAxis"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "geometries": [], "id": "9f05c5b0-50dc-40f9-b8e6-6ced53585445"}, "id": "9f05c5b0-50dc-40f9-b8e6-6ced53585445", "type": "ToolEvents"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "children": [{"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}], "id": "578dff4d-6284-48db-a5a6-1c0a55575666"}, "id": "578dff4d-6284-48db-a5a6-1c0a55575666", "type": "HBox"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "d1abfb61-3924-4ee7-84c9-ea33c8be0d80"}, "id": "d1abfb61-3924-4ee7-84c9-ea33c8be0d80", "type": "HelpTool"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "0e9f4c1c-2144-467f-938f-edbe92ed4b51"}, "id": "0e9f4c1c-2144-467f-938f-edbe92ed4b51", "type": "ResizeTool"}, {"attributes": {"tags": [], "plot": {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "08966705-05b8-453a-861b-46279682f15b"}, "id": "08966705-05b8-453a-861b-46279682f15b", "type": "ResetTool"}, {"attributes": {"tags": [], "y": {"field": "y"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "x": {"field": "x"}, "line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "id": "be97e731-8a45-46e7-ba9b-0c5439723916"}, "id": "be97e731-8a45-46e7-ba9b-0c5439723916", "type": "Line"}, {"attributes": {"tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "children": [{"id": "578dff4d-6284-48db-a5a6-1c0a55575666", "type": "HBox"}, {"id": "7eff1810-f48d-4520-8c5f-b450227ed4d3", "subtype": "Figure", "type": "Plot"}], "id": "643c4687-9dae-4a55-860b-511399eb1e65"}, "id": "643c4687-9dae-4a55-860b-511399eb1e65", "type": "VBox"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "dimension": 1, "id": "cbcf124c-75cd-4626-b677-9fe01505853e", "ticker": {"id": "b05b3ab6-1b98-4a42-89d1-279d628b32f8", "type": "BasicTicker"}}, "id": "cbcf124c-75cd-4626-b677-9fe01505853e", "type": "Grid"}, {"attributes": {"tags": [], "plot": {"id": "fc830268-7cdc-44ce-97d6-a0db725b76cf", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "bda972f7-04fd-45f6-86b7-b26928bad79d"}, "id": "bda972f7-04fd-45f6-86b7-b26928bad79d", "type": "PreviewSaveTool"}, {"attributes": {"callback": null, "tags": [], "names": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "renderers": [], "id": "5cd75817-43d3-4132-864f-22978e08ad9b"}, "id": "5cd75817-43d3-4132-864f-22978e08ad9b", "type": "DataRange1d"}, {"attributes": {"tags": [], "plot": {"id": "eb6df9b8-8a48-46d2-a7e1-81bf0830bca6", "subtype": "Figure", "type": "Plot"}, "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "id": "e8e25ca2-bc09-4609-9ebc-e341f4ba7520"}, "id": "e8e25ca2-bc09-4609-9ebc-e341f4ba7520", "type": "HelpTool"}, {"attributes": {"mantissas": [2, 5, 10], "tags": [], "doc": "f49c8198-5841-4407-a2c9-ac821b3ccbf9", "num_minor_ticks": 5, "id": "811df4e2-75b2-4e04-9579-b748a49c7d76"}, "id": "811df4e2-75b2-4e04-9579-b748a49c7d76", "type": "BasicTicker"}];
Bokeh.load_models(all_models);
var plots = [{'modelid': '24c784dc-d216-4bb0-a9ef-c92f2af647ce', 'modeltype': 'PlotContext', 'elementid': '#0ed137bd-4a07-4b21-9b19-650e26a27899'}];
for (idx in plots) {
var plot = plots[idx];
var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
Bokeh.logger.info('Realizing plot:')
Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
Bokeh.logger.info(' - modelid: ' + plot.modelid);
Bokeh.logger.info(' - elementid: ' + plot.elementid);
var view = new model.default_view({
model: model,
el: plot.elementid
});
Bokeh.index[plot.modelid] = view;
}
});
</script>
</head>
<body>
<div class="plotdiv" id="0ed137bd-4a07-4b21-9b19-650e26a27899"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment