Last active
May 24, 2017 16:00
-
-
Save PBrockmann/38d7d55b1526c0572a75ac4f9c169f09 to your computer and use it in GitHub Desktop.
bokeh interactiv legend CustomJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": false, | |
"deletable": true, | |
"editable": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"\n", | |
" <div class=\"bk-root\">\n", | |
" <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n", | |
" <span id=\"6e2f010c-3582-413f-819c-e1ef57d5ca6e\">Loading BokehJS ...</span>\n", | |
" </div>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
}, | |
{ | |
"data": { | |
"application/javascript": [ | |
"\n", | |
"(function(global) {\n", | |
" function now() {\n", | |
" return new Date();\n", | |
" }\n", | |
"\n", | |
" var force = true;\n", | |
"\n", | |
" if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force === true) {\n", | |
" window._bokeh_onload_callbacks = [];\n", | |
" window._bokeh_is_loading = undefined;\n", | |
" }\n", | |
"\n", | |
"\n", | |
" \n", | |
" if (typeof (window._bokeh_timeout) === \"undefined\" || force === true) {\n", | |
" window._bokeh_timeout = Date.now() + 5000;\n", | |
" window._bokeh_failed_load = false;\n", | |
" }\n", | |
"\n", | |
" var NB_LOAD_WARNING = {'data': {'text/html':\n", | |
" \"<div style='background-color: #fdd'>\\n\"+\n", | |
" \"<p>\\n\"+\n", | |
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", | |
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", | |
" \"</p>\\n\"+\n", | |
" \"<ul>\\n\"+\n", | |
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n", | |
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n", | |
" \"</ul>\\n\"+\n", | |
" \"<code>\\n\"+\n", | |
" \"from bokeh.resources import INLINE\\n\"+\n", | |
" \"output_notebook(resources=INLINE)\\n\"+\n", | |
" \"</code>\\n\"+\n", | |
" \"</div>\"}};\n", | |
"\n", | |
" function display_loaded() {\n", | |
" if (window.Bokeh !== undefined) {\n", | |
" var el = document.getElementById(\"6e2f010c-3582-413f-819c-e1ef57d5ca6e\");\n", | |
" el.textContent = \"BokehJS \" + Bokeh.version + \" successfully loaded.\";\n", | |
" } else if (Date.now() < window._bokeh_timeout) {\n", | |
" setTimeout(display_loaded, 100)\n", | |
" }\n", | |
" }\n", | |
"\n", | |
" function run_callbacks() {\n", | |
" window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n", | |
" delete window._bokeh_onload_callbacks\n", | |
" console.info(\"Bokeh: all callbacks have finished\");\n", | |
" }\n", | |
"\n", | |
" function load_libs(js_urls, callback) {\n", | |
" window._bokeh_onload_callbacks.push(callback);\n", | |
" if (window._bokeh_is_loading > 0) {\n", | |
" console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", | |
" return null;\n", | |
" }\n", | |
" if (js_urls == null || js_urls.length === 0) {\n", | |
" run_callbacks();\n", | |
" return null;\n", | |
" }\n", | |
" console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", | |
" window._bokeh_is_loading = js_urls.length;\n", | |
" for (var i = 0; i < js_urls.length; i++) {\n", | |
" var url = js_urls[i];\n", | |
" var s = document.createElement('script');\n", | |
" s.src = url;\n", | |
" s.async = false;\n", | |
" s.onreadystatechange = s.onload = function() {\n", | |
" window._bokeh_is_loading--;\n", | |
" if (window._bokeh_is_loading === 0) {\n", | |
" console.log(\"Bokeh: all BokehJS libraries loaded\");\n", | |
" run_callbacks()\n", | |
" }\n", | |
" };\n", | |
" s.onerror = function() {\n", | |
" console.warn(\"failed to load library \" + url);\n", | |
" };\n", | |
" console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", | |
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n", | |
" }\n", | |
" };var element = document.getElementById(\"6e2f010c-3582-413f-819c-e1ef57d5ca6e\");\n", | |
" if (element == null) {\n", | |
" console.log(\"Bokeh: ERROR: autoload.js configured with elementid '6e2f010c-3582-413f-819c-e1ef57d5ca6e' but no matching script tag was found. \")\n", | |
" return false;\n", | |
" }\n", | |
"\n", | |
" var js_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.5.min.js\"];\n", | |
"\n", | |
" var inline_js = [\n", | |
" function(Bokeh) {\n", | |
" Bokeh.set_log_level(\"info\");\n", | |
" },\n", | |
" \n", | |
" function(Bokeh) {\n", | |
" \n", | |
" },\n", | |
" \n", | |
" function(Bokeh) {\n", | |
" \n", | |
" document.getElementById(\"6e2f010c-3582-413f-819c-e1ef57d5ca6e\").textContent = \"BokehJS is loading...\";\n", | |
" },\n", | |
" function(Bokeh) {\n", | |
" console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.css\");\n", | |
" Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.css\");\n", | |
" console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.5.min.css\");\n", | |
" Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.5.min.css\");\n", | |
" }\n", | |
" ];\n", | |
"\n", | |
" function run_inline_js() {\n", | |
" \n", | |
" if ((window.Bokeh !== undefined) || (force === true)) {\n", | |
" for (var i = 0; i < inline_js.length; i++) {\n", | |
" inline_js[i](window.Bokeh);\n", | |
" }if (force === true) {\n", | |
" display_loaded();\n", | |
" }} else if (Date.now() < window._bokeh_timeout) {\n", | |
" setTimeout(run_inline_js, 100);\n", | |
" } else if (!window._bokeh_failed_load) {\n", | |
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", | |
" window._bokeh_failed_load = true;\n", | |
" } else if (force !== true) {\n", | |
" var cell = $(document.getElementById(\"6e2f010c-3582-413f-819c-e1ef57d5ca6e\")).parents('.cell').data().cell;\n", | |
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n", | |
" }\n", | |
"\n", | |
" }\n", | |
"\n", | |
" if (window._bokeh_is_loading === 0) {\n", | |
" console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n", | |
" run_inline_js();\n", | |
" } else {\n", | |
" load_libs(js_urls, function() {\n", | |
" console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n", | |
" run_inline_js();\n", | |
" });\n", | |
" }\n", | |
"}(this));" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"import numpy as np\n", | |
"import random\n", | |
"\n", | |
"import bokeh\n", | |
"import bokeh.plotting as bk\n", | |
"from bokeh.plotting import figure, output_file, show, save\n", | |
"from bokeh.models import CustomJS\n", | |
"from bokeh.models.widgets import CheckboxButtonGroup\n", | |
"from bokeh.layouts import widgetbox, layout\n", | |
"\n", | |
"bk.output_notebook()" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"collapsed": false, | |
"deletable": true, | |
"editable": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"\n", | |
"\n", | |
" <div class=\"bk-root\">\n", | |
" <div class=\"bk-plotdiv\" id=\"1fe0b9eb-1db2-4199-8796-5e7127afdd6e\"></div>\n", | |
" </div>\n", | |
"<script type=\"text/javascript\">\n", | |
" \n", | |
" (function(global) {\n", | |
" function now() {\n", | |
" return new Date();\n", | |
" }\n", | |
" \n", | |
" var force = false;\n", | |
" \n", | |
" if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force === true) {\n", | |
" window._bokeh_onload_callbacks = [];\n", | |
" window._bokeh_is_loading = undefined;\n", | |
" }\n", | |
" \n", | |
" \n", | |
" \n", | |
" if (typeof (window._bokeh_timeout) === \"undefined\" || force === true) {\n", | |
" window._bokeh_timeout = Date.now() + 0;\n", | |
" window._bokeh_failed_load = false;\n", | |
" }\n", | |
" \n", | |
" var NB_LOAD_WARNING = {'data': {'text/html':\n", | |
" \"<div style='background-color: #fdd'>\\n\"+\n", | |
" \"<p>\\n\"+\n", | |
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", | |
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", | |
" \"</p>\\n\"+\n", | |
" \"<ul>\\n\"+\n", | |
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n", | |
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n", | |
" \"</ul>\\n\"+\n", | |
" \"<code>\\n\"+\n", | |
" \"from bokeh.resources import INLINE\\n\"+\n", | |
" \"output_notebook(resources=INLINE)\\n\"+\n", | |
" \"</code>\\n\"+\n", | |
" \"</div>\"}};\n", | |
" \n", | |
" function display_loaded() {\n", | |
" if (window.Bokeh !== undefined) {\n", | |
" var el = document.getElementById(\"1fe0b9eb-1db2-4199-8796-5e7127afdd6e\");\n", | |
" el.textContent = \"BokehJS \" + Bokeh.version + \" successfully loaded.\";\n", | |
" } else if (Date.now() < window._bokeh_timeout) {\n", | |
" setTimeout(display_loaded, 100)\n", | |
" }\n", | |
" }\n", | |
" \n", | |
" function run_callbacks() {\n", | |
" window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n", | |
" delete window._bokeh_onload_callbacks\n", | |
" console.info(\"Bokeh: all callbacks have finished\");\n", | |
" }\n", | |
" \n", | |
" function load_libs(js_urls, callback) {\n", | |
" window._bokeh_onload_callbacks.push(callback);\n", | |
" if (window._bokeh_is_loading > 0) {\n", | |
" console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", | |
" return null;\n", | |
" }\n", | |
" if (js_urls == null || js_urls.length === 0) {\n", | |
" run_callbacks();\n", | |
" return null;\n", | |
" }\n", | |
" console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", | |
" window._bokeh_is_loading = js_urls.length;\n", | |
" for (var i = 0; i < js_urls.length; i++) {\n", | |
" var url = js_urls[i];\n", | |
" var s = document.createElement('script');\n", | |
" s.src = url;\n", | |
" s.async = false;\n", | |
" s.onreadystatechange = s.onload = function() {\n", | |
" window._bokeh_is_loading--;\n", | |
" if (window._bokeh_is_loading === 0) {\n", | |
" console.log(\"Bokeh: all BokehJS libraries loaded\");\n", | |
" run_callbacks()\n", | |
" }\n", | |
" };\n", | |
" s.onerror = function() {\n", | |
" console.warn(\"failed to load library \" + url);\n", | |
" };\n", | |
" console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", | |
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n", | |
" }\n", | |
" };var element = document.getElementById(\"1fe0b9eb-1db2-4199-8796-5e7127afdd6e\");\n", | |
" if (element == null) {\n", | |
" console.log(\"Bokeh: ERROR: autoload.js configured with elementid '1fe0b9eb-1db2-4199-8796-5e7127afdd6e' but no matching script tag was found. \")\n", | |
" return false;\n", | |
" }\n", | |
" \n", | |
" var js_urls = [];\n", | |
" \n", | |
" var inline_js = [\n", | |
" function(Bokeh) {\n", | |
" (function() {\n", | |
" var fn = function() {\n", | |
" var docs_json = {\"01f607f9-b4b3-47a4-9eb0-b567557b97d3\":{\"roots\":{\"references\":[{\"attributes\":{},\"id\":\"f7b6d090-2055-490e-8a54-3e3b87358145\",\"type\":\"ToolEvents\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"a65951be-8e52-47ca-b8c1-a95a7b73ab72\",\"type\":\"SaveTool\"},{\"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\":\"0d2e01d4-8ecd-40ca-acaf-98e8d21efa4d\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"0952fc60-a053-4f0c-9fb7-bdbd033eb2a1\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"932265fa-a09a-4ae1-8cc0-37427bcc82c2\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"a26ecbb9-a070-4632-ac26-c8ddb4b85f3d\",\"type\":\"Patch\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"c086ed0b-3d5d-42c9-9c04-37cbaa5c2889\",\"type\":\"Patch\"},\"selection_glyph\":null,\"visible\":false},\"id\":\"32c6bc87-8f9e-4968-8da7-c0e3afb53f31\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"653f018e-951f-4254-b905-1843f533e356\",\"type\":\"Line\"},{\"attributes\":{\"args\":{\"checkbox\":{\"id\":\"226e3d0b-1774-456c-90e6-2ec7025ffa58\",\"type\":\"CheckboxButtonGroup\"},\"lc\":{\"id\":\"25915b4d-79a9-4148-ad2f-248c630ad119\",\"type\":\"GlyphRenderer\"},\"ls\":{\"id\":\"1481b463-4cf4-447e-9dcf-379a03a7cc02\",\"type\":\"GlyphRenderer\"},\"pc\":{\"id\":\"32c6bc87-8f9e-4968-8da7-c0e3afb53f31\",\"type\":\"GlyphRenderer\"},\"ps\":{\"id\":\"e74d2bdb-2742-45f5-808a-335ed2c9bb46\",\"type\":\"GlyphRenderer\"}},\"code\":\"\\nif (checkbox.active[0] == 0) {\\n pc.visible = lc.visible;\\n ps.visible = ls.visible;\\n} else {\\n pc.visible = false;\\n ps.visible = false;\\n}\\n\"},\"id\":\"91282e16-9b93-4929-a1de-8aafb13ad103\",\"type\":\"CustomJS\"},{\"attributes\":{\"data_source\":{\"id\":\"b38a22ca-6d92-4c69-b29e-f51763d4dca7\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c899a161-1713-4a0f-8976-3ccd543fa7c1\",\"type\":\"Line\"},\"hover_glyph\":null,\"js_property_callbacks\":{\"change:visible\":[{\"id\":\"91282e16-9b93-4929-a1de-8aafb13ad103\",\"type\":\"CustomJS\"}]},\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"8c32b746-eb88-43c8-8db3-1afb671cd893\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"1481b463-4cf4-447e-9dcf-379a03a7cc02\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"label\":{\"value\":\"Sinus\"},\"renderers\":[{\"id\":\"1481b463-4cf4-447e-9dcf-379a03a7cc02\",\"type\":\"GlyphRenderer\"}]},\"id\":\"6f2df48d-dd62-4978-8530-684f2f718cce\",\"type\":\"LegendItem\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.2},\"fill_color\":{\"value\":\"blue\"},\"line_alpha\":{\"value\":0},\"line_color\":{\"value\":\"#1f77b4\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"df86cb08-9ea6-48b2-9e80-92f18ce052f0\",\"type\":\"Patch\"},{\"attributes\":{\"click_policy\":\"hide\",\"items\":[{\"id\":\"6f2df48d-dd62-4978-8530-684f2f718cce\",\"type\":\"LegendItem\"},{\"id\":\"166119ad-0adb-4117-9141-5e568e85975a\",\"type\":\"LegendItem\"}],\"location\":\"top_left\",\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"0f76ddc8-0c3f-4740-a5b1-9053f29cc765\",\"type\":\"Legend\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.2},\"fill_color\":{\"value\":\"red\"},\"line_alpha\":{\"value\":0},\"line_color\":{\"value\":\"#1f77b4\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"a26ecbb9-a070-4632-ac26-c8ddb4b85f3d\",\"type\":\"Patch\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"c02c32f3-ca7c-4cf8-a17d-639dcecf1641\",\"type\":\"ResetTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y\",\"x\"],\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAAB7FK5H4XqEP3sUrkfhepQ/uB6F61G4nj97FK5H4XqkP5qZmZmZmak/uB6F61G4rj/sUbgeheuxP3sUrkfherQ/CtejcD0Ktz+amZmZmZm5Pylcj8L1KLw/uB6F61G4vj+kcD0K16PAP+xRuB6F68E/MzMzMzMzwz97FK5H4XrEP8P1KFyPwsU/CtejcD0Kxz9SuB6F61HIP5qZmZmZmck/4XoUrkfhyj8pXI/C9SjMP3E9CtejcM0/uB6F61G4zj8AAAAAAADQP6RwPQrXo9A/SOF6FK5H0T/sUbgehevRP4/C9Shcj9I/MzMzMzMz0z/Xo3A9CtfTP3sUrkfhetQ/H4XrUbge1T/D9Shcj8LVP2dmZmZmZtY/CtejcD0K1z+uR+F6FK7XP1K4HoXrUdg/9ihcj8L12D+amZmZmZnZPz4K16NwPdo/4XoUrkfh2j+F61G4HoXbPylcj8L1KNw/zczMzMzM3D9xPQrXo3DdPxWuR+F6FN4/uB6F61G43j9cj8L1KFzfPwAAAAAAAOA/UrgehetR4D+kcD0K16PgP/YoXI/C9eA/SOF6FK5H4T+amZmZmZnhP+xRuB6F6+E/PgrXo3A94j+PwvUoXI/iP+F6FK5H4eI/MzMzMzMz4z+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CsuDt2/TysYPH4l4b8GrN1A75zjvxcgEVXP5+W/28UN7ugA6L+l9Jebd+Ppvz/KCN0yi+u/jBXc3Ff07L/b/4L8sRvuv+IeEB2i/u6/XOQvlCSb77//Q+S/1e/vv4YQnS71+++/BNmAVGe/77/7pATKtTrvvwZVRBMOb+6/8Rfi8j5e7b9ZwIFOtArsvxRRNa5xd+q/8GtbYwuo6L/LO39mnqDmv8oBtf7GZeS/8ACwR5b84b9Lqb9cDdXev+HpfPzeatm/W+kvN+/G079VH9IjHuzLvx5coV3rCsC/qFj3LRIVoL+vk+AbChOwPz1TqGcLBsQ/igcc+hHVzz/sllfQ4a3VP7+BJcn3P9s/46IeORFK4D9mWnUEI8/iP/yyQIB3KeU/FrjSA7ZT5z/lkR0q80jpP4EuZP+7BOs/bSw9HSCD7D/dWu+dusDtP3A10dK5uu4//wklrOVu7z9ak+PDpNvvPw==\",\"dtype\":\"float64\",\"shape\":[200]}}},\"id\":\"19fc6af0-a593-4a0a-8002-6043820f1627\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"9e634bd7-c66d-4688-b163-3e9dc143d611\",\"type\":\"HelpTool\"},{\"attributes\":{\"label\":{\"value\":\"Cosinus\"},\"renderers\":[{\"id\":\"25915b4d-79a9-4148-ad2f-248c630ad119\",\"type\":\"GlyphRenderer\"}]},\"id\":\"166119ad-0adb-4117-9141-5e568e85975a\",\"type\":\"LegendItem\"},{\"attributes\":{\"children\":[{\"id\":\"6895d5ea-96a0-4ae4-801d-86e4eeb202bd\",\"type\":\"Row\"},{\"id\":\"dcd6700b-4204-4ef6-bf38-11a7638cbd1c\",\"type\":\"Row\"}]},\"id\":\"addb2cd6-f8f4-4b1d-88a8-6a6bc1af98dc\",\"type\":\"Column\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"623cf638-5bd0-42d5-9793-2868ce39404b\",\"type\":\"BasicTicker\"}},\"id\":\"9a0f626f-4add-4919-a067-f900443ec849\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":{\"id\":\"91282e16-9b93-4929-a1de-8aafb13ad103\",\"type\":\"CustomJS\"},\"labels\":[\"Noise\"]},\"id\":\"226e3d0b-1774-456c-90e6-2ec7025ffa58\",\"type\":\"CheckboxButtonGroup\"},{\"attributes\":{\"children\":[{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}]},\"id\":\"dcd6700b-4204-4ef6-bf38-11a7638cbd1c\",\"type\":\"Row\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y\",\"x\"],\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAAB7FK5H4XqEP3sUrkfhepQ/uB6F61G4nj97FK5H4XqkP5qZmZmZmak/uB6F61G4rj/sUbgeheuxP3sUrkfherQ/CtejcD0Ktz+amZmZmZm5Pylcj8L1KLw/uB6F61G4vj+kcD0K16PAP+xRuB6F68E/MzMzMzMzwz97FK5H4XrEP8P1KFyPwsU/CtejcD0Kxz9SuB6F61HIP5qZmZmZmck/4XoUrkfhyj8pXI/C9SjMP3E9CtejcM0/uB6F61G4zj8AAAAAAADQP6RwPQrXo9A/SOF6FK5H0T/sUbgehevRP4/C9Shcj9I/MzMzMzMz0z/Xo3A9CtfTP3sUrkfhetQ/H4XrUbge1T/D9Shcj8LVP2dmZmZmZtY/CtejcD0K1z+uR+F6FK7XP1K4HoXrUdg/9ihcj8L12D+amZmZmZnZPz4K16NwPdo/4XoUrkfh2j+F61G4HoXbPylcj8L1KNw/zczMzMzM3D9xPQrXo3DdPxWuR+F6FN4/uB6F61G43j9cj8L1KFzfPwAAAAAAAOA/UrgehetR4D+kcD0K16PgP/YoXI/C9eA/SOF6FK5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RYeCG9S/yPPCz6iC8r/KoIuUZe/hv4qWhrgHi9m/fL7AjOtR7r8KxqTOw+jsvyBa91y79fW/7O0jR8tn8b9m2dNYy5r6v6rCDPTZyfy/xnkDf0aJ+b+Zqg3gzQjxvybvXb++QfW/LMHJmHws9L+EA37/ufDyv9JmxsLw1/K/vCFQUE+V979qyBehl7P1v8fxHd56yvG/8SC4q1sq87/Gd0wLaaDuvyJ2ZejFrPq/0vIg9eCY8L8kp9o1DBrpv878bhHOO/a/QtN3S2kn9L/RJiLeU8Pnv/UGvn2ePfe/qEKsFpyL7b9ki96+znHXv/DZRW76hee/HB6smtYUyL+I8aBErPHnv6akWxfeq+W/xKxxyVdUor+sAwTJRW/OP7Cip7VdBKU/cFEe8PdT4L/eh1zPgFrTP8D6ZATEv4Q/5AIMk/ndwr8QlHuuUUWnv4CJr5KFs72/nCffQqgM6j+0IhKsduPaPzUVaVTIcew/CqWNRT1s7T+26hveTkPUP2aIhyjffOg/dEkpxi2bxj8=\",\"dtype\":\"float64\",\"shape\":[400]}}},\"id\":\"932265fa-a09a-4ae1-8cc0-37427bcc82c2\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8c32b746-eb88-43c8-8db3-1afb671cd893\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"65beb0bd-0595-4318-b173-bb3ce9d43bef\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"c1d87b19-1657-4736-b978-429c5bb8d902\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null},\"id\":\"ca3e41b4-7832-41a7-8ac2-61a14f44af7e\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"623cf638-5bd0-42d5-9793-2868ce39404b\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"27a081f8-60fe-4f78-b3af-0e37721915db\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"df86cb08-9ea6-48b2-9e80-92f18ce052f0\",\"type\":\"Patch\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"0d452c81-8722-49b4-b95f-5d95c5e7e49b\",\"type\":\"Patch\"},\"selection_glyph\":null,\"visible\":false},\"id\":\"e74d2bdb-2742-45f5-808a-335ed2c9bb46\",\"type\":\"GlyphRenderer\"},{\"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\":\"c086ed0b-3d5d-42c9-9c04-37cbaa5c2889\",\"type\":\"Patch\"},{\"attributes\":{\"overlay\":{\"id\":\"0d2e01d4-8ecd-40ca-acaf-98e8d21efa4d\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"b1046d3b-70f4-48fb-a756-dc6228ece4dc\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"plot\":null,\"text\":\"\"},\"id\":\"ccde8d75-0572-4bf8-9c32-c662e8129a98\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"b037d02e-6c7f-463b-bee4-97d6460fb218\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y\",\"x\"],\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAAB7FK5H4XqEP3sUrkfhepQ/uB6F61G4nj97FK5H4XqkP5qZmZmZmak/uB6F61G4rj/sUbgeheuxP3sUrkfherQ/CtejcD0Ktz+amZmZmZm5Pylcj8L1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NK/ZySTf2ot4D9ggjUytkmRv7sdnLV18dQ/fNoZ0Qh8zj8MbKxHbpzev+Afcq1Yb8G/o611jjRZ6r8=\",\"dtype\":\"float64\",\"shape\":[400]}}},\"id\":\"27a081f8-60fe-4f78-b3af-0e37721915db\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"19fc6af0-a593-4a0a-8002-6043820f1627\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"28a79e72-9119-4171-b616-4795f3eec47c\",\"type\":\"Line\"},\"hover_glyph\":null,\"js_property_callbacks\":{\"change:visible\":[{\"id\":\"91282e16-9b93-4929-a1de-8aafb13ad103\",\"type\":\"CustomJS\"}]},\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"653f018e-951f-4254-b905-1843f533e356\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"25915b4d-79a9-4148-ad2f-248c630ad119\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null},\"id\":\"c299f5ff-75f9-43ce-81e4-c272c55740a8\",\"type\":\"DataRange1d\"},{\"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\":\"0d452c81-8722-49b4-b95f-5d95c5e7e49b\",\"type\":\"Patch\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"f14c2371-ee74-40fe-9145-27990a5bced5\",\"type\":\"PanTool\"},{\"id\":\"c1d87b19-1657-4736-b978-429c5bb8d902\",\"type\":\"WheelZoomTool\"},{\"id\":\"b1046d3b-70f4-48fb-a756-dc6228ece4dc\",\"type\":\"BoxZoomTool\"},{\"id\":\"a65951be-8e52-47ca-b8c1-a95a7b73ab72\",\"type\":\"SaveTool\"},{\"id\":\"c02c32f3-ca7c-4cf8-a17d-639dcecf1641\",\"type\":\"ResetTool\"},{\"id\":\"9e634bd7-c66d-4688-b163-3e9dc143d611\",\"type\":\"HelpTool\"}]},\"id\":\"1d1408f0-1b09-4d93-b928-100c5063b100\",\"type\":\"Toolbar\"},{\"attributes\":{\"formatter\":{\"id\":\"65beb0bd-0595-4318-b173-bb3ce9d43bef\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"623cf638-5bd0-42d5-9793-2868ce39404b\",\"type\":\"BasicTicker\"}},\"id\":\"df8cb835-7ede-4b05-b117-dee475d2c699\",\"type\":\"LinearAxis\"},{\"attributes\":{\"formatter\":{\"id\":\"b037d02e-6c7f-463b-bee4-97d6460fb218\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"0952fc60-a053-4f0c-9fb7-bdbd033eb2a1\",\"type\":\"BasicTicker\"}},\"id\":\"6cad279f-f705-4e89-99e7-c4a6d5bec6ff\",\"type\":\"LinearAxis\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"0952fc60-a053-4f0c-9fb7-bdbd033eb2a1\",\"type\":\"BasicTicker\"}},\"id\":\"903760ca-2fa7-471a-a267-5413ad815bb1\",\"type\":\"Grid\"},{\"attributes\":{\"plot\":{\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"f14c2371-ee74-40fe-9145-27990a5bced5\",\"type\":\"PanTool\"},{\"attributes\":{\"line_alpha\":{\"value\":0.6},\"line_color\":{\"value\":\"blue\"},\"line_width\":{\"value\":3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c899a161-1713-4a0f-8976-3ccd543fa7c1\",\"type\":\"Line\"},{\"attributes\":{\"line_alpha\":{\"value\":0.6},\"line_color\":{\"value\":\"red\"},\"line_width\":{\"value\":3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"28a79e72-9119-4171-b616-4795f3eec47c\",\"type\":\"Line\"},{\"attributes\":{\"children\":[{\"id\":\"8d682cba-02c4-46e2-9695-25a75cdbc51c\",\"type\":\"WidgetBox\"}]},\"id\":\"6895d5ea-96a0-4ae4-801d-86e4eeb202bd\",\"type\":\"Row\"},{\"attributes\":{\"below\":[{\"id\":\"6cad279f-f705-4e89-99e7-c4a6d5bec6ff\",\"type\":\"LinearAxis\"}],\"left\":[{\"id\":\"df8cb835-7ede-4b05-b117-dee475d2c699\",\"type\":\"LinearAxis\"}],\"plot_height\":400,\"renderers\":[{\"id\":\"6cad279f-f705-4e89-99e7-c4a6d5bec6ff\",\"type\":\"LinearAxis\"},{\"id\":\"903760ca-2fa7-471a-a267-5413ad815bb1\",\"type\":\"Grid\"},{\"id\":\"df8cb835-7ede-4b05-b117-dee475d2c699\",\"type\":\"LinearAxis\"},{\"id\":\"9a0f626f-4add-4919-a067-f900443ec849\",\"type\":\"Grid\"},{\"id\":\"0d2e01d4-8ecd-40ca-acaf-98e8d21efa4d\",\"type\":\"BoxAnnotation\"},{\"id\":\"0f76ddc8-0c3f-4740-a5b1-9053f29cc765\",\"type\":\"Legend\"},{\"id\":\"1481b463-4cf4-447e-9dcf-379a03a7cc02\",\"type\":\"GlyphRenderer\"},{\"id\":\"25915b4d-79a9-4148-ad2f-248c630ad119\",\"type\":\"GlyphRenderer\"},{\"id\":\"e74d2bdb-2742-45f5-808a-335ed2c9bb46\",\"type\":\"GlyphRenderer\"},{\"id\":\"32c6bc87-8f9e-4968-8da7-c0e3afb53f31\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"ccde8d75-0572-4bf8-9c32-c662e8129a98\",\"type\":\"Title\"},\"tool_events\":{\"id\":\"f7b6d090-2055-490e-8a54-3e3b87358145\",\"type\":\"ToolEvents\"},\"toolbar\":{\"id\":\"1d1408f0-1b09-4d93-b928-100c5063b100\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"c299f5ff-75f9-43ce-81e4-c272c55740a8\",\"type\":\"DataRange1d\"},\"y_range\":{\"id\":\"ca3e41b4-7832-41a7-8ac2-61a14f44af7e\",\"type\":\"DataRange1d\"}},\"id\":\"04cdb877-fbb8-4ba2-9e47-9ff71411e2ac\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"children\":[{\"id\":\"226e3d0b-1774-456c-90e6-2ec7025ffa58\",\"type\":\"CheckboxButtonGroup\"}]},\"id\":\"8d682cba-02c4-46e2-9695-25a75cdbc51c\",\"type\":\"WidgetBox\"}],\"root_ids\":[\"addb2cd6-f8f4-4b1d-88a8-6a6bc1af98dc\"]},\"title\":\"Bokeh Application\",\"version\":\"0.12.5\"}};\n", | |
" var render_items = [{\"docid\":\"01f607f9-b4b3-47a4-9eb0-b567557b97d3\",\"elementid\":\"1fe0b9eb-1db2-4199-8796-5e7127afdd6e\",\"modelid\":\"addb2cd6-f8f4-4b1d-88a8-6a6bc1af98dc\"}];\n", | |
" \n", | |
" Bokeh.embed.embed_items(docs_json, render_items);\n", | |
" };\n", | |
" if (document.readyState != \"loading\") fn();\n", | |
" else document.addEventListener(\"DOMContentLoaded\", fn);\n", | |
" })();\n", | |
" },\n", | |
" function(Bokeh) {\n", | |
" }\n", | |
" ];\n", | |
" \n", | |
" function run_inline_js() {\n", | |
" \n", | |
" if ((window.Bokeh !== undefined) || (force === true)) {\n", | |
" for (var i = 0; i < inline_js.length; i++) {\n", | |
" inline_js[i](window.Bokeh);\n", | |
" }if (force === true) {\n", | |
" display_loaded();\n", | |
" }} else if (Date.now() < window._bokeh_timeout) {\n", | |
" setTimeout(run_inline_js, 100);\n", | |
" } else if (!window._bokeh_failed_load) {\n", | |
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", | |
" window._bokeh_failed_load = true;\n", | |
" } else if (force !== true) {\n", | |
" var cell = $(document.getElementById(\"1fe0b9eb-1db2-4199-8796-5e7127afdd6e\")).parents('.cell').data().cell;\n", | |
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n", | |
" }\n", | |
" \n", | |
" }\n", | |
" \n", | |
" if (window._bokeh_is_loading === 0) {\n", | |
" console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n", | |
" run_inline_js();\n", | |
" } else {\n", | |
" load_libs(js_urls, function() {\n", | |
" console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n", | |
" run_inline_js();\n", | |
" });\n", | |
" }\n", | |
" }(this));\n", | |
"</script>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"t = np.arange(0.0, 2.0, 0.01)\n", | |
"s = np.sin(3*np.pi*t)\n", | |
"c = np.cos(3*np.pi*t)\n", | |
"r = [random.random() for i in t]\n", | |
"\n", | |
"t2 = np.append(t, t[::-1])\n", | |
"sr_high = s + r\n", | |
"sr_low = s - r\n", | |
"sr2 = np.append(sr_high, sr_low[::-1])\n", | |
"cr_high = c + r\n", | |
"cr_low = c - r\n", | |
"cr2 = np.append(cr_high, cr_low[::-1])\n", | |
"\n", | |
"plot = figure(plot_width=600, plot_height=400)\n", | |
"ls = plot.line(t, s, line_width=3, line_alpha=0.6, line_color='blue', legend='Sinus')\n", | |
"lc = plot.line(t, c, line_width=3, line_alpha=0.6, line_color='red', legend='Cosinus')\n", | |
"\n", | |
"ps = plot.patch(t2, sr2, line_width=1, fill_alpha=0.2, line_alpha=0, fill_color='blue')\n", | |
"pc = plot.patch(t2, cr2, line_width=1, fill_alpha=0.2, line_alpha=0, fill_color='red')\n", | |
"\n", | |
"plot.legend.location = 'top_left'\n", | |
"plot.legend.click_policy = 'hide'\n", | |
"\n", | |
"ps.visible = pc.visible = False\n", | |
"\n", | |
"checkbox = CheckboxButtonGroup(labels=[\"Noise\"])\n", | |
"\n", | |
"js_callback = CustomJS(args=dict(ls=ls,ps=ps,lc=lc,pc=pc,checkbox=checkbox), code=\"\"\"\n", | |
"if (checkbox.active[0] == 0) {\n", | |
" pc.visible = lc.visible;\n", | |
" ps.visible = ls.visible;\n", | |
"} else {\n", | |
" pc.visible = false;\n", | |
" ps.visible = false;\n", | |
"}\n", | |
"\"\"\")\n", | |
"\n", | |
"ls.js_on_change('visible',js_callback)\n", | |
"lc.js_on_change('visible',js_callback)\n", | |
"checkbox.callback = js_callback\n", | |
"\n", | |
"l = layout([[checkbox],[plot]])\n", | |
"\n", | |
"show(l)" | |
] | |
} | |
], | |
"metadata": { | |
"anaconda-cloud": {}, | |
"kernelspec": { | |
"display_name": "Python [default]", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.12" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment