Created
December 17, 2019 11:42
-
-
Save walter9388/c90fdf852685fbc1273f16a227ae4ca7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Demo markdown cell" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"ename": "NameError", | |
"evalue": "name 'callbackfunctions' is not defined", | |
"output_type": "error", | |
"traceback": [ | |
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", | |
"\u001b[1;32m<ipython-input-4-ae0a41649ae6>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 77\u001b[0m \u001b[0mf0\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcopy\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mf\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 78\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 79\u001b[1;33m \u001b[1;33m@\u001b[0m\u001b[0minteract\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcallbackfunctions\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 80\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mcallbackfunctions\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mf\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mj\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 81\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", | |
"\u001b[1;31mNameError\u001b[0m: name 'callbackfunctions' is not defined" | |
] | |
} | |
], | |
"source": [ | |
"from IPython.display import HTML\n", | |
"from ipywidgets import interact\n", | |
"\n", | |
"HTML('''<script>\n", | |
"code_show=true; \n", | |
"function code_toggle() {\n", | |
" if (code_show){\n", | |
" $('div.input').hide();\n", | |
" } else {\n", | |
" $('div.input').show();\n", | |
" }\n", | |
" code_show = !code_show\n", | |
"} \n", | |
"$( document ).ready(code_toggle);\n", | |
"</script>\n", | |
"The raw code for this IPython notebook is by default hidden for easier reading.\n", | |
"To toggle on/off the raw code, click <a href=\"javascript:code_toggle()\">here</a>.''')\n", | |
"\n", | |
"import plotly.graph_objects as go\n", | |
"# import chart_studio.plotly as py\n", | |
"import plotly.io as pio\n", | |
"from copy import copy\n", | |
"import numpy as np\n", | |
"np.random.seed(1)\n", | |
"\n", | |
"pio.renderers.default = \"browser\"\n", | |
"\n", | |
"n=10\n", | |
"\n", | |
"x = np.arange(0,n)\n", | |
"y1 = np.random.rand(n)\n", | |
"y2 = np.random.rand(n)\n", | |
"y3 = np.random.rand(n)\n", | |
"y4 = np.random.rand(n)\n", | |
"y5 = np.random.rand(n)\n", | |
"y6 = np.random.rand(n)\n", | |
"y7 = np.random.rand(n)\n", | |
"\n", | |
"names=['Set 1','Set 2','Set 3']\n", | |
"\n", | |
"colours=['crimson','darkturquoise','lime']\n", | |
"\n", | |
"f = go.FigureWidget([go.Scatter(x=x, y=y1, name=names[0]),\n", | |
" go.Scatter(x=x, y=y2, name=names[0]),\n", | |
" go.Scatter(x=x, y=y3, name=names[1]),\n", | |
" go.Scatter(x=x, y=y4, name=names[1]),\n", | |
" go.Scatter(x=x, y=y5, name=names[2]),\n", | |
" go.Scatter(x=x, y=y6, name=names[2]),\n", | |
" go.Scatter(x=x, y=y7, name=names[2]),\n", | |
" ])\n", | |
"\n", | |
"uniquecol={}\n", | |
"ii=0\n", | |
"# change info for hover tings \n", | |
"for i in range(len(f.data)):\n", | |
" f.data[i].mode='lines'\n", | |
" f.data[i].hoverlabel.namelength=0\n", | |
" f.data[i].text=[f.data[i].name for j in range(n)]\n", | |
" f.data[i].hovertemplate = '<b>%{text}</b>:' + '<br>X: %{x}' + '<br>Y: %{y:.2f}</br>'\n", | |
" if f.data[i].name not in uniquecol:\n", | |
" uniquecol[f.data[i].name]=ii\n", | |
" ii += 1\n", | |
" f.data[i].showlegend=True\n", | |
" else:\n", | |
" f.data[i].showlegend=False\n", | |
" f.data[i].line=dict(color=colours[uniquecol[f.data[i].name]])\n", | |
" f.data[i].opacity=1\n", | |
" f.data[i].line.width=2\n", | |
" \n", | |
"\n", | |
"f.layout.hovermode = 'closest'\n", | |
"f.layout.title = 'Demo Line Highlighting Plot'\n", | |
"f.layout.xaxis.title = 'X'\n", | |
"f.layout.yaxis.title = 'Y'\n", | |
"\n", | |
"# save initial f as f0 to find initial colours and line sizes\n", | |
"f0=copy(f)\n", | |
"\n", | |
"@interact(callbackfunctions)\n", | |
"def callbackfunctions(f,j):\n", | |
" \n", | |
" temp=[f.data[i].name==f.data[j].name for i in range(len(f.data))]\n", | |
" \n", | |
" # create our callback function for hover\n", | |
" def update_point1(trace, points, selector):\n", | |
" if points.point_inds:\n", | |
" # c = '#bae2be'\n", | |
" s = f0.data[j].line.width*1.5\n", | |
" with f.batch_update():\n", | |
" for i in np.where(temp)[0]:\n", | |
" f.data[i].line.width = s\n", | |
" for i in np.where(~np.array(temp))[0]:\n", | |
" f.data[i].opacity = 0.5 \n", | |
" \n", | |
" # create our callback function for unhover\n", | |
" def update_point2(trace, points, selector):\n", | |
" if points.point_inds:\n", | |
" # c = f0.data[2].line.color\n", | |
" s = f0.data[j].line.width\n", | |
" with f.batch_update():#\n", | |
" for i in np.where(temp)[0]:\n", | |
" f.data[i].line.width = s\n", | |
" for i in np.where(~np.array(temp))[0]:\n", | |
" f.data[i].opacity = 1\n", | |
" \n", | |
" f.data[j].on_hover(update_point1)\n", | |
" f.data[j].on_unhover(update_point2)\n", | |
"\n", | |
"for i in range(len(f.data)):\n", | |
" callbackfunctions(f,i)\n", | |
"\n", | |
"f\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"3\n" | |
] | |
} | |
], | |
"source": [ | |
"a=1\n", | |
"b=2\n", | |
"print(a+b)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.7.3" | |
}, | |
"widgets": { | |
"application/vnd.jupyter.widget-state+json": { | |
"state": { | |
"148899678c574506a94a21c33aadf042": { | |
"buffers": [ | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
0, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "Bjz6D32w2j9R8Lrz5QznPwDAYWaQ+x0/9Aj+t2pZ0z88Bcej5cjCPxDKsIyAo7c/5OE05l/Xxz/Oo1u9qh3WP+j7e2ejZNk/VJ9il/w94T8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
0, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
1, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "ipWBOhXU2j8nIxlyUe3lPwxiGMd9K8o/ShbrvIkZ7D/ArGdEfgucP6nlp0d4dOU//lqoMx+12j8LCbl9yeDhP9yqBv8y+ME/REh0vGNbyT8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
1, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
2, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "XyfdErOf6T8QBjaz//vuP1gOvkgkD9Q/lJYSwoEn5j/ex3VDYQvsP+MLUSeeoOw/WByMGnXFtT+QpnkR/f6jP/yo8tAAvcU/556uTr4Z7D8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
2, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
3, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "iGT6EkItuT8ujF9lbfPaP7irpfEHp+4/yErKpLAP4T+slCh52yPmP+API3loMdQ/MB0iy9D35T+VcKblQLXqP6C5X4QpupI/twF/pi4B6D8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
3, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
4, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "sX2kAsCk7z/AqDEZ+fDnP/aukVvL8tE/nnTjuMZB6T/Q/1gCBW26PyAAwZtJqtw/+3pi4DYT7T8iGjr/ksrSP2q39EDpatI/CJRluMakwD8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
4, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
5, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "gCi0iu7Ukz+y3apLBbnlP1AykU6hFss/eDVkarf+0D801KxE73XfPxDnN+RVUqs/P6x04itf4j9U+E1/AMjCPxI+C0mX2+I/To/spGtk5j8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
5, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
6, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "kAIS0ZYyuj8qeZmv5H/aP53k+K2GOOY/XCZTxOmB2j8wtf3wf5OpPxxvLjgQJuE/R1OPRM495T/Yayu7+HngPz+EHsgeOu4/C1KIEw/F4j8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
6, | |
"y", | |
"value" | |
] | |
} | |
], | |
"model_module": "plotlywidget", | |
"model_module_version": "^1.4.0", | |
"model_name": "FigureModel", | |
"state": { | |
"_config": { | |
"plotlyServerURL": "https://plot.ly" | |
}, | |
"_data": [ | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "crimson", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 1", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1" | |
], | |
"type": "scatter", | |
"uid": "3a50960a-1453-4639-a749-11fb261af1ec", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "crimson", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 1", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1" | |
], | |
"type": "scatter", | |
"uid": "00f6665a-43d9-4937-afe7-938150de6544", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "darkturquoise", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 2", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2" | |
], | |
"type": "scatter", | |
"uid": "9a3705e8-3f51-465c-a0eb-f2eeb12f39ff", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "darkturquoise", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 2", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2" | |
], | |
"type": "scatter", | |
"uid": "96626d79-bcc7-46c2-b340-b2773e47c7ab", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "614473e0-ac38-4cff-b20c-6b86d5b9914c", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "c49fde33-af48-4fd4-8bc7-76397a10c7be", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "7f1d5f3f-a8be-4f18-b75e-b6c9821a516c", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
} | |
], | |
"_js2py_layoutDelta": {}, | |
"_js2py_pointsCallback": {}, | |
"_js2py_relayout": {}, | |
"_js2py_restyle": {}, | |
"_js2py_traceDeltas": {}, | |
"_js2py_update": {}, | |
"_layout": { | |
"hovermode": "closest", | |
"template": { | |
"data": { | |
"bar": [ | |
{ | |
"error_x": { | |
"color": "#2a3f5f" | |
}, | |
"error_y": { | |
"color": "#2a3f5f" | |
}, | |
"marker": { | |
"line": { | |
"color": "#E5ECF6", | |
"width": 0.5 | |
} | |
}, | |
"type": "bar" | |
} | |
], | |
"barpolar": [ | |
{ | |
"marker": { | |
"line": { | |
"color": "#E5ECF6", | |
"width": 0.5 | |
} | |
}, | |
"type": "barpolar" | |
} | |
], | |
"carpet": [ | |
{ | |
"aaxis": { | |
"endlinecolor": "#2a3f5f", | |
"gridcolor": "white", | |
"linecolor": "white", | |
"minorgridcolor": "white", | |
"startlinecolor": "#2a3f5f" | |
}, | |
"baxis": { | |
"endlinecolor": "#2a3f5f", | |
"gridcolor": "white", | |
"linecolor": "white", | |
"minorgridcolor": "white", | |
"startlinecolor": "#2a3f5f" | |
}, | |
"type": "carpet" | |
} | |
], | |
"choropleth": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "choropleth" | |
} | |
], | |
"contour": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "contour" | |
} | |
], | |
"contourcarpet": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "contourcarpet" | |
} | |
], | |
"heatmap": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "heatmap" | |
} | |
], | |
"heatmapgl": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "heatmapgl" | |
} | |
], | |
"histogram": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "histogram" | |
} | |
], | |
"histogram2d": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "histogram2d" | |
} | |
], | |
"histogram2dcontour": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "histogram2dcontour" | |
} | |
], | |
"mesh3d": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "mesh3d" | |
} | |
], | |
"parcoords": [ | |
{ | |
"line": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "parcoords" | |
} | |
], | |
"pie": [ | |
{ | |
"automargin": true, | |
"type": "pie" | |
} | |
], | |
"scatter": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatter" | |
} | |
], | |
"scatter3d": [ | |
{ | |
"line": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatter3d" | |
} | |
], | |
"scattercarpet": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattercarpet" | |
} | |
], | |
"scattergeo": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattergeo" | |
} | |
], | |
"scattergl": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattergl" | |
} | |
], | |
"scattermapbox": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattermapbox" | |
} | |
], | |
"scatterpolar": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterpolar" | |
} | |
], | |
"scatterpolargl": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterpolargl" | |
} | |
], | |
"scatterternary": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterternary" | |
} | |
], | |
"surface": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "surface" | |
} | |
], | |
"table": [ | |
{ | |
"cells": { | |
"fill": { | |
"color": "#EBF0F8" | |
}, | |
"line": { | |
"color": "white" | |
} | |
}, | |
"header": { | |
"fill": { | |
"color": "#C8D4E3" | |
}, | |
"line": { | |
"color": "white" | |
} | |
}, | |
"type": "table" | |
} | |
] | |
}, | |
"layout": { | |
"annotationdefaults": { | |
"arrowcolor": "#2a3f5f", | |
"arrowhead": 0, | |
"arrowwidth": 1 | |
}, | |
"coloraxis": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"colorscale": { | |
"diverging": [ | |
[ | |
0, | |
"#8e0152" | |
], | |
[ | |
0.1, | |
"#c51b7d" | |
], | |
[ | |
0.2, | |
"#de77ae" | |
], | |
[ | |
0.3, | |
"#f1b6da" | |
], | |
[ | |
0.4, | |
"#fde0ef" | |
], | |
[ | |
0.5, | |
"#f7f7f7" | |
], | |
[ | |
0.6, | |
"#e6f5d0" | |
], | |
[ | |
0.7, | |
"#b8e186" | |
], | |
[ | |
0.8, | |
"#7fbc41" | |
], | |
[ | |
0.9, | |
"#4d9221" | |
], | |
[ | |
1, | |
"#276419" | |
] | |
], | |
"sequential": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"sequentialminus": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
] | |
}, | |
"colorway": [ | |
"#636efa", | |
"#EF553B", | |
"#00cc96", | |
"#ab63fa", | |
"#FFA15A", | |
"#19d3f3", | |
"#FF6692", | |
"#B6E880", | |
"#FF97FF", | |
"#FECB52" | |
], | |
"font": { | |
"color": "#2a3f5f" | |
}, | |
"geo": { | |
"bgcolor": "white", | |
"lakecolor": "white", | |
"landcolor": "#E5ECF6", | |
"showlakes": true, | |
"showland": true, | |
"subunitcolor": "white" | |
}, | |
"hoverlabel": { | |
"align": "left" | |
}, | |
"hovermode": "closest", | |
"mapbox": { | |
"style": "light" | |
}, | |
"paper_bgcolor": "white", | |
"plot_bgcolor": "#E5ECF6", | |
"polar": { | |
"angularaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"bgcolor": "#E5ECF6", | |
"radialaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
} | |
}, | |
"scene": { | |
"xaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
}, | |
"yaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
}, | |
"zaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
} | |
}, | |
"shapedefaults": { | |
"line": { | |
"color": "#2a3f5f" | |
} | |
}, | |
"ternary": { | |
"aaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"baxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"bgcolor": "#E5ECF6", | |
"caxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
} | |
}, | |
"title": { | |
"x": 0.05 | |
}, | |
"xaxis": { | |
"automargin": true, | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "", | |
"title": { | |
"standoff": 15 | |
}, | |
"zerolinecolor": "white", | |
"zerolinewidth": 2 | |
}, | |
"yaxis": { | |
"automargin": true, | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "", | |
"title": { | |
"standoff": 15 | |
}, | |
"zerolinecolor": "white", | |
"zerolinewidth": 2 | |
} | |
} | |
}, | |
"title": { | |
"text": "Demo Line Highlighting Plot" | |
}, | |
"xaxis": { | |
"title": { | |
"text": "X" | |
} | |
}, | |
"yaxis": { | |
"title": { | |
"text": "Y" | |
} | |
} | |
}, | |
"_py2js_addTraces": {}, | |
"_py2js_animate": {}, | |
"_py2js_deleteTraces": {}, | |
"_py2js_moveTraces": {}, | |
"_py2js_relayout": {}, | |
"_py2js_removeLayoutProps": {}, | |
"_py2js_removeTraceProps": {}, | |
"_py2js_restyle": {}, | |
"_py2js_update": {}, | |
"_view_count": 0 | |
} | |
}, | |
"8b3c4e9c48c2457e87e8199d812cfb91": { | |
"buffers": [ | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
0, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "Bjz6D32w2j9R8Lrz5QznPwDAYWaQ+x0/9Aj+t2pZ0z88Bcej5cjCPxDKsIyAo7c/5OE05l/Xxz/Oo1u9qh3WP+j7e2ejZNk/VJ9il/w94T8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
0, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
1, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "ipWBOhXU2j8nIxlyUe3lPwxiGMd9K8o/ShbrvIkZ7D/ArGdEfgucP6nlp0d4dOU//lqoMx+12j8LCbl9yeDhP9yqBv8y+ME/REh0vGNbyT8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
1, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
2, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "XyfdErOf6T8QBjaz//vuP1gOvkgkD9Q/lJYSwoEn5j/ex3VDYQvsP+MLUSeeoOw/WByMGnXFtT+QpnkR/f6jP/yo8tAAvcU/556uTr4Z7D8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
2, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
3, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "iGT6EkItuT8ujF9lbfPaP7irpfEHp+4/yErKpLAP4T+slCh52yPmP+API3loMdQ/MB0iy9D35T+VcKblQLXqP6C5X4QpupI/twF/pi4B6D8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
3, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
4, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "sX2kAsCk7z/AqDEZ+fDnP/aukVvL8tE/nnTjuMZB6T/Q/1gCBW26PyAAwZtJqtw/+3pi4DYT7T8iGjr/ksrSP2q39EDpatI/CJRluMakwD8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
4, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
5, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "gCi0iu7Ukz+y3apLBbnlP1AykU6hFss/eDVkarf+0D801KxE73XfPxDnN+RVUqs/P6x04itf4j9U+E1/AMjCPxI+C0mX2+I/To/spGtk5j8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
5, | |
"y", | |
"value" | |
] | |
}, | |
{ | |
"data": "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAA==", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
6, | |
"x", | |
"value" | |
] | |
}, | |
{ | |
"data": "kAIS0ZYyuj8qeZmv5H/aP53k+K2GOOY/XCZTxOmB2j8wtf3wf5OpPxxvLjgQJuE/R1OPRM495T/Yayu7+HngPz+EHsgeOu4/C1KIEw/F4j8=", | |
"encoding": "base64", | |
"path": [ | |
"_data", | |
6, | |
"y", | |
"value" | |
] | |
} | |
], | |
"model_module": "plotlywidget", | |
"model_module_version": "^1.4.0", | |
"model_name": "FigureModel", | |
"state": { | |
"_config": { | |
"plotlyServerURL": "https://plot.ly" | |
}, | |
"_data": [ | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "crimson", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 1", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1" | |
], | |
"type": "scatter", | |
"uid": "641d6dd1-30fd-4d74-aca9-fe0212b46d8a", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "crimson", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 1", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1", | |
"Set 1" | |
], | |
"type": "scatter", | |
"uid": "f98c8caf-8446-41bb-a398-912b077b6746", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "darkturquoise", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 2", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2" | |
], | |
"type": "scatter", | |
"uid": "2facd39a-c712-4c96-b075-6d277ad755a2", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "darkturquoise", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 2", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2", | |
"Set 2" | |
], | |
"type": "scatter", | |
"uid": "4a379312-85e3-4275-abbf-bdf06ce6a7c0", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": true, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "5a709040-1159-4e1b-a105-0a22b27867c9", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "8c41df72-a07c-4aff-8c14-27645a88c3fe", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
}, | |
{ | |
"hoverlabel": { | |
"namelength": 0 | |
}, | |
"hovertemplate": "<b>%{text}</b>:<br>X: %{x}<br>Y: %{y:.2f}</br>", | |
"line": { | |
"color": "lime", | |
"width": 2 | |
}, | |
"mode": "lines", | |
"name": "Set 3", | |
"opacity": 1, | |
"showlegend": false, | |
"text": [ | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3", | |
"Set 3" | |
], | |
"type": "scatter", | |
"uid": "902edf9d-e497-46a1-bc15-34d5e8dbf1c2", | |
"x": { | |
"dtype": "int32", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
}, | |
"y": { | |
"dtype": "float64", | |
"shape": [ | |
10 | |
], | |
"value": {} | |
} | |
} | |
], | |
"_js2py_pointsCallback": {}, | |
"_js2py_relayout": {}, | |
"_js2py_restyle": {}, | |
"_js2py_update": {}, | |
"_last_layout_edit_id": 60, | |
"_last_trace_edit_id": 56, | |
"_layout": { | |
"hovermode": "closest", | |
"template": { | |
"data": { | |
"bar": [ | |
{ | |
"error_x": { | |
"color": "#2a3f5f" | |
}, | |
"error_y": { | |
"color": "#2a3f5f" | |
}, | |
"marker": { | |
"line": { | |
"color": "#E5ECF6", | |
"width": 0.5 | |
} | |
}, | |
"type": "bar" | |
} | |
], | |
"barpolar": [ | |
{ | |
"marker": { | |
"line": { | |
"color": "#E5ECF6", | |
"width": 0.5 | |
} | |
}, | |
"type": "barpolar" | |
} | |
], | |
"carpet": [ | |
{ | |
"aaxis": { | |
"endlinecolor": "#2a3f5f", | |
"gridcolor": "white", | |
"linecolor": "white", | |
"minorgridcolor": "white", | |
"startlinecolor": "#2a3f5f" | |
}, | |
"baxis": { | |
"endlinecolor": "#2a3f5f", | |
"gridcolor": "white", | |
"linecolor": "white", | |
"minorgridcolor": "white", | |
"startlinecolor": "#2a3f5f" | |
}, | |
"type": "carpet" | |
} | |
], | |
"choropleth": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "choropleth" | |
} | |
], | |
"contour": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "contour" | |
} | |
], | |
"contourcarpet": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "contourcarpet" | |
} | |
], | |
"heatmap": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "heatmap" | |
} | |
], | |
"heatmapgl": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "heatmapgl" | |
} | |
], | |
"histogram": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "histogram" | |
} | |
], | |
"histogram2d": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "histogram2d" | |
} | |
], | |
"histogram2dcontour": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "histogram2dcontour" | |
} | |
], | |
"mesh3d": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"type": "mesh3d" | |
} | |
], | |
"parcoords": [ | |
{ | |
"line": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "parcoords" | |
} | |
], | |
"pie": [ | |
{ | |
"automargin": true, | |
"type": "pie" | |
} | |
], | |
"scatter": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatter" | |
} | |
], | |
"scatter3d": [ | |
{ | |
"line": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatter3d" | |
} | |
], | |
"scattercarpet": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattercarpet" | |
} | |
], | |
"scattergeo": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattergeo" | |
} | |
], | |
"scattergl": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattergl" | |
} | |
], | |
"scattermapbox": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scattermapbox" | |
} | |
], | |
"scatterpolar": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterpolar" | |
} | |
], | |
"scatterpolargl": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterpolargl" | |
} | |
], | |
"scatterternary": [ | |
{ | |
"marker": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"type": "scatterternary" | |
} | |
], | |
"surface": [ | |
{ | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
}, | |
"colorscale": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"type": "surface" | |
} | |
], | |
"table": [ | |
{ | |
"cells": { | |
"fill": { | |
"color": "#EBF0F8" | |
}, | |
"line": { | |
"color": "white" | |
} | |
}, | |
"header": { | |
"fill": { | |
"color": "#C8D4E3" | |
}, | |
"line": { | |
"color": "white" | |
} | |
}, | |
"type": "table" | |
} | |
] | |
}, | |
"layout": { | |
"annotationdefaults": { | |
"arrowcolor": "#2a3f5f", | |
"arrowhead": 0, | |
"arrowwidth": 1 | |
}, | |
"coloraxis": { | |
"colorbar": { | |
"outlinewidth": 0, | |
"ticks": "" | |
} | |
}, | |
"colorscale": { | |
"diverging": [ | |
[ | |
0, | |
"#8e0152" | |
], | |
[ | |
0.1, | |
"#c51b7d" | |
], | |
[ | |
0.2, | |
"#de77ae" | |
], | |
[ | |
0.3, | |
"#f1b6da" | |
], | |
[ | |
0.4, | |
"#fde0ef" | |
], | |
[ | |
0.5, | |
"#f7f7f7" | |
], | |
[ | |
0.6, | |
"#e6f5d0" | |
], | |
[ | |
0.7, | |
"#b8e186" | |
], | |
[ | |
0.8, | |
"#7fbc41" | |
], | |
[ | |
0.9, | |
"#4d9221" | |
], | |
[ | |
1, | |
"#276419" | |
] | |
], | |
"sequential": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
], | |
"sequentialminus": [ | |
[ | |
0, | |
"#0d0887" | |
], | |
[ | |
0.1111111111111111, | |
"#46039f" | |
], | |
[ | |
0.2222222222222222, | |
"#7201a8" | |
], | |
[ | |
0.3333333333333333, | |
"#9c179e" | |
], | |
[ | |
0.4444444444444444, | |
"#bd3786" | |
], | |
[ | |
0.5555555555555556, | |
"#d8576b" | |
], | |
[ | |
0.6666666666666666, | |
"#ed7953" | |
], | |
[ | |
0.7777777777777778, | |
"#fb9f3a" | |
], | |
[ | |
0.8888888888888888, | |
"#fdca26" | |
], | |
[ | |
1, | |
"#f0f921" | |
] | |
] | |
}, | |
"colorway": [ | |
"#636efa", | |
"#EF553B", | |
"#00cc96", | |
"#ab63fa", | |
"#FFA15A", | |
"#19d3f3", | |
"#FF6692", | |
"#B6E880", | |
"#FF97FF", | |
"#FECB52" | |
], | |
"font": { | |
"color": "#2a3f5f" | |
}, | |
"geo": { | |
"bgcolor": "white", | |
"lakecolor": "white", | |
"landcolor": "#E5ECF6", | |
"showlakes": true, | |
"showland": true, | |
"subunitcolor": "white" | |
}, | |
"hoverlabel": { | |
"align": "left" | |
}, | |
"hovermode": "closest", | |
"mapbox": { | |
"style": "light" | |
}, | |
"paper_bgcolor": "white", | |
"plot_bgcolor": "#E5ECF6", | |
"polar": { | |
"angularaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"bgcolor": "#E5ECF6", | |
"radialaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
} | |
}, | |
"scene": { | |
"xaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
}, | |
"yaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
}, | |
"zaxis": { | |
"backgroundcolor": "#E5ECF6", | |
"gridcolor": "white", | |
"gridwidth": 2, | |
"linecolor": "white", | |
"showbackground": true, | |
"ticks": "", | |
"zerolinecolor": "white" | |
} | |
}, | |
"shapedefaults": { | |
"line": { | |
"color": "#2a3f5f" | |
} | |
}, | |
"ternary": { | |
"aaxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"baxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
}, | |
"bgcolor": "#E5ECF6", | |
"caxis": { | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "" | |
} | |
}, | |
"title": { | |
"x": 0.05 | |
}, | |
"xaxis": { | |
"automargin": true, | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "", | |
"title": { | |
"standoff": 15 | |
}, | |
"zerolinecolor": "white", | |
"zerolinewidth": 2 | |
}, | |
"yaxis": { | |
"automargin": true, | |
"gridcolor": "white", | |
"linecolor": "white", | |
"ticks": "", | |
"title": { | |
"standoff": 15 | |
}, | |
"zerolinecolor": "white", | |
"zerolinewidth": 2 | |
} | |
} | |
}, | |
"title": { | |
"text": "Demo Line Highlighting Plot" | |
}, | |
"xaxis": { | |
"title": { | |
"text": "X" | |
} | |
}, | |
"yaxis": { | |
"title": { | |
"text": "Y" | |
} | |
} | |
}, | |
"_py2js_addTraces": {}, | |
"_py2js_animate": {}, | |
"_py2js_deleteTraces": {}, | |
"_py2js_moveTraces": {}, | |
"_py2js_removeLayoutProps": {}, | |
"_py2js_removeTraceProps": {}, | |
"_py2js_update": {}, | |
"_view_count": 1 | |
} | |
} | |
}, | |
"version_major": 2, | |
"version_minor": 0 | |
} | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment