Skip to content

Instantly share code, notes, and snippets.

@Pabla007
Last active June 7, 2019 08:48
Show Gist options
  • Save Pabla007/0f1eb04cf72c5aaf1a74e50552009f06 to your computer and use it in GitHub Desktop.
Save Pabla007/0f1eb04cf72c5aaf1a74e50552009f06 to your computer and use it in GitHub Desktop.
bqplot is simple.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import bqplot"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"#import json\n",
"import numpy as np\n",
"import bqplot.pyplot as plt\n",
"#from ipywidgets.embed import embed_data\n",
"#from ipywidgets.embed import embed_minimal_html\n",
"#from ipywidgets.embed import embed_minimal_html, dependency_state"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3f020b6fc0ab466b99d87af7f85fe6f1",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig_margin={'top':…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"size = 100\n",
"scale = 100.\n",
"np.random.seed(0)\n",
"x_data = np.arange(size)\n",
"y_data = np.cumsum(np.random.randn(size) * scale)\n",
"\n",
"fig = plt.figure(title='First Example')\n",
"plt.plot(y_data)\n",
"fig\n",
"#embed_minimal_html('export.html', views=[fig], state=dependency_state([fig]))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"html_template = '''<html><head>\n",
"\n",
"\n",
"<!-- Load require.js. Delete this if your page already loads require.js -->\n",
"<script src=\"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js\" \n",
"integrity=\"sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=\" crossorigin=\"anonymous\">\n",
"</script>\n",
"<script src=\"https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js\" crossorigin=\"anonymous\"></script>\n",
"<script type=\"application/vnd.jupyter.widget-state+json\">\n",
"{\n",
" \"version_major\": 2,\n",
" \"version_minor\": 0,\n",
" \"state\": {\n",
" \"ccf41db1734c4b01a3f0d1626d88672c\": {\n",
" \"model_name\": \"LayoutModel\",\n",
" \"model_module\": \"@jupyter-widgets/base\",\n",
" \"model_module_version\": \"1.1.0\",\n",
" \"state\": {\n",
" \"min_width\": \"125px\"\n",
" }\n",
" },\n",
" \"50630ca5d7494397946e769624d75c7d\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"allow_padding\": false,\n",
" \"max\": 1,\n",
" \"min\": 0,\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"bbdddfa7678545d9a3551cfaf9ed0038\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"allow_padding\": false,\n",
" \"max\": 1,\n",
" \"min\": 0,\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"abbea5e8c9b5433d8943d32997dd46ee\": {\n",
" \"model_name\": \"FigureModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"_dom_classes\": [],\n",
" \"axes\": [\n",
" \"IPY_MODEL_8f1a60477c734bc78fc99e9dd06cce70\",\n",
" \"IPY_MODEL_d6b5bb73e2984d1fbe518d0ea5825f9a\"\n",
" ],\n",
" \"layout\": \"IPY_MODEL_ccf41db1734c4b01a3f0d1626d88672c\",\n",
" \"marks\": [\n",
" \"IPY_MODEL_5f66b75c2b9b4cc29b7aae2dcbf3e000\"\n",
" ],\n",
" \"scale_x\": \"IPY_MODEL_50630ca5d7494397946e769624d75c7d\",\n",
" \"scale_y\": \"IPY_MODEL_bbdddfa7678545d9a3551cfaf9ed0038\",\n",
" \"title\": \"First Example\"\n",
" }\n",
" },\n",
" \"292bf4c039ec49569a194073b7c5039d\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"53fee84e17c04e96aa1ce53a9a6a4ddc\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"5f66b75c2b9b4cc29b7aae2dcbf3e000\": {\n",
" \"model_name\": \"LinesModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"color\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" },\n",
" \"display_legend\": false,\n",
" \"fill_colors\": [],\n",
" \"labels\": [\n",
" \"C1\"\n",
" ],\n",
" \"scales\": {\n",
" \"x\": \"IPY_MODEL_292bf4c039ec49569a194073b7c5039d\",\n",
" \"y\": \"IPY_MODEL_53fee84e17c04e96aa1ce53a9a6a4ddc\"\n",
" },\n",
" \"selected\": [],\n",
" \"x\": {\n",
" \"values\": [\n",
" 0,\n",
" 1,\n",
" 2,\n",
" 3,\n",
" 4,\n",
" 5,\n",
" 6,\n",
" 7,\n",
" 8,\n",
" 9,\n",
" 10,\n",
" 11,\n",
" 12,\n",
" 13,\n",
" 14,\n",
" 15,\n",
" 16,\n",
" 17,\n",
" 18,\n",
" 19,\n",
" 20,\n",
" 21,\n",
" 22,\n",
" 23,\n",
" 24,\n",
" 25,\n",
" 26,\n",
" 27,\n",
" 28,\n",
" 29,\n",
" 30,\n",
" 31,\n",
" 32,\n",
" 33,\n",
" 34,\n",
" 35,\n",
" 36,\n",
" 37,\n",
" 38,\n",
" 39,\n",
" 40,\n",
" 41,\n",
" 42,\n",
" 43,\n",
" 44,\n",
" 45,\n",
" 46,\n",
" 47,\n",
" 48,\n",
" 49,\n",
" 50,\n",
" 51,\n",
" 52,\n",
" 53,\n",
" 54,\n",
" 55,\n",
" 56,\n",
" 57,\n",
" 58,\n",
" 59,\n",
" 60,\n",
" 61,\n",
" 62,\n",
" 63,\n",
" 64,\n",
" 65,\n",
" 66,\n",
" 67,\n",
" 68,\n",
" 69,\n",
" 70,\n",
" 71,\n",
" 72,\n",
" 73,\n",
" 74,\n",
" 75,\n",
" 76,\n",
" 77,\n",
" 78,\n",
" 79,\n",
" 80,\n",
" 81,\n",
" 82,\n",
" 83,\n",
" 84,\n",
" 85,\n",
" 86,\n",
" 87,\n",
" 88,\n",
" 89,\n",
" 90,\n",
" 91,\n",
" 92,\n",
" 93,\n",
" 94,\n",
" 95,\n",
" 96,\n",
" 97,\n",
" 98,\n",
" 99\n",
" ],\n",
" \"type\": \"float\"\n",
" },\n",
" \"y\": {\n",
" \"values\": [\n",
" 176.4052345967664,\n",
" 216.42095543348873,\n",
" 314.29475384406265,\n",
" 538.3840737642084,\n",
" 725.1398727792052,\n",
" 627.4120847915641,\n",
" 722.4209265441231,\n",
" 707.2852057143533,\n",
" 696.9633205349975,\n",
" 738.0231707288347,\n",
" 752.4275278449224,\n",
" 897.8548785412199,\n",
" 973.9586510559193,\n",
" 986.1261527052021,\n",
" 1030.5124759797447,\n",
" 1063.8799087171714,\n",
" 1213.2878160329321,\n",
" 1192.7719896563521,\n",
" 1224.0787598214422,\n",
" 1138.6691858912697,\n",
" 883.3702043078618,\n",
" 948.7320638518979,\n",
" 1035.1756837378484,\n",
" 960.9591816972043,\n",
" 1187.934644095965,\n",
" 1042.4980766360886,\n",
" 1047.0739283662333,\n",
" 1028.35554336365,\n",
" 1181.6334647994956,\n",
" 1328.569341789524,\n",
" 1344.0640843592157,\n",
" 1381.8803363194331,\n",
" 1293.101761556422,\n",
" 1095.0221147340291,\n",
" 1060.230899801414,\n",
" 1075.865796711812,\n",
" 1198.8948647845841,\n",
" 1319.1328496630253,\n",
" 1280.4001679222301,\n",
" 1250.1698928646965,\n",
" 1145.3145963579872,\n",
" 1003.3128026400898,\n",
" 832.6857835775885,\n",
" 1027.7633231007673,\n",
" 976.798104925602,\n",
" 932.9906747644834,\n",
" 807.7111387594907,\n",
" 885.4601743426817,\n",
" 724.0703895868866,\n",
" 702.7963615654897,\n",
" 613.2497054461222,\n",
" 651.9399552320484,\n",
" 600.8594414751611,\n",
" 482.7962230629199,\n",
" 479.97800022905443,\n",
" 522.8111872820962,\n",
" 529.462909520413,\n",
" 559.7100992943911,\n",
" 496.2778899262947,\n",
" 460.00377332758086,\n",
" 392.75772854998575,\n",
" 356.80241239593164,\n",
" 275.48778419148624,\n",
" 102.85952395831856,\n",
" 120.60213818369385,\n",
" 80.42404456286766,\n",
" -82.59579013373678,\n",
" -36.31756458115937,\n",
" -127.04740101948357,\n",
" -121.85286143986968,\n",
" -48.943805222116,\n",
" -36.04551414637493,\n",
" 77.89455430795514,\n",
" -45.58802772741012,\n",
" -5.353863609655221,\n",
" -73.83487270368654,\n",
" -160.91458762187472,\n",
" -218.79955409831626,\n",
" -249.95480731105351,\n",
" -244.33827308807898,\n",
" -360.8532571664146,\n",
" -270.7706084709959,\n",
" -224.20436449794994,\n",
" -377.82873312567233,\n",
" -229.00351374611236,\n",
" -39.41459614305404,\n",
" 78.46336097291103,\n",
" 60.47087739167594,\n",
" -46.604384759378306,\n",
" 58.840787933735356,\n",
" 18.523093236417395,\n",
" 140.76760027466014,\n",
" 161.59509808234617,\n",
" 259.25900173071744,\n",
" 294.8956414481576,\n",
" 365.55295826735243,\n",
" 366.6029603394345,\n",
" 545.190009730018,\n",
" 557.88121900038,\n",
" 598.0801553448502\n",
" ],\n",
" \"type\": \"float\"\n",
" }\n",
" }\n",
" },\n",
" \"8f1a60477c734bc78fc99e9dd06cce70\": {\n",
" \"model_name\": \"AxisModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"scale\": \"IPY_MODEL_292bf4c039ec49569a194073b7c5039d\",\n",
" \"side\": \"bottom\",\n",
" \"tick_values\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" }\n",
" }\n",
" },\n",
" \"d6b5bb73e2984d1fbe518d0ea5825f9a\": {\n",
" \"model_name\": \"AxisModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"orientation\": \"vertical\",\n",
" \"scale\": \"IPY_MODEL_53fee84e17c04e96aa1ce53a9a6a4ddc\",\n",
" \"side\": \"left\",\n",
" \"tick_values\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" }\n",
" }\n",
" },\n",
" \"d43f0b6bc2b048bb8140c88ae0a44ac5\": {\n",
" \"model_name\": \"LayoutModel\",\n",
" \"model_module\": \"@jupyter-widgets/base\",\n",
" \"model_module_version\": \"1.1.0\",\n",
" \"state\": {\n",
" \"min_width\": \"125px\"\n",
" }\n",
" },\n",
" \"841257d0954649c6a2ae19d2a39ef9f2\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"allow_padding\": false,\n",
" \"max\": 1,\n",
" \"min\": 0,\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"95834bf56531492cbf4a4270ff80aee7\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"allow_padding\": false,\n",
" \"max\": 1,\n",
" \"min\": 0,\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"680554fe790c494d886797929643e45c\": {\n",
" \"model_name\": \"FigureModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"_dom_classes\": [],\n",
" \"axes\": [\n",
" \"IPY_MODEL_0ceb1bd1553e4bcf86d553a803e991d3\",\n",
" \"IPY_MODEL_a0a862a305704b4583db52da5539ae65\"\n",
" ],\n",
" \"layout\": \"IPY_MODEL_d43f0b6bc2b048bb8140c88ae0a44ac5\",\n",
" \"marks\": [\n",
" \"IPY_MODEL_c77a269fa288484ea6fb1ea38743c8f2\"\n",
" ],\n",
" \"scale_x\": \"IPY_MODEL_841257d0954649c6a2ae19d2a39ef9f2\",\n",
" \"scale_y\": \"IPY_MODEL_95834bf56531492cbf4a4270ff80aee7\",\n",
" \"title\": \"First Example\"\n",
" }\n",
" },\n",
" \"0acf6d9e9b5049098df0fdadbfa203e4\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"1b1f0f9af67844b7877b4692dfab0774\": {\n",
" \"model_name\": \"LinearScaleModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"stabilized\": false\n",
" }\n",
" },\n",
" \"c77a269fa288484ea6fb1ea38743c8f2\": {\n",
" \"model_name\": \"LinesModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"color\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" },\n",
" \"display_legend\": false,\n",
" \"fill_colors\": [],\n",
" \"labels\": [\n",
" \"C1\"\n",
" ],\n",
" \"scales\": {\n",
" \"x\": \"IPY_MODEL_0acf6d9e9b5049098df0fdadbfa203e4\",\n",
" \"y\": \"IPY_MODEL_1b1f0f9af67844b7877b4692dfab0774\"\n",
" },\n",
" \"selected\": [],\n",
" \"x\": {\n",
" \"values\": [\n",
" 0,\n",
" 1,\n",
" 2,\n",
" 3,\n",
" 4,\n",
" 5,\n",
" 6,\n",
" 7,\n",
" 8,\n",
" 9,\n",
" 10,\n",
" 11,\n",
" 12,\n",
" 13,\n",
" 14,\n",
" 15,\n",
" 16,\n",
" 17,\n",
" 18,\n",
" 19,\n",
" 20,\n",
" 21,\n",
" 22,\n",
" 23,\n",
" 24,\n",
" 25,\n",
" 26,\n",
" 27,\n",
" 28,\n",
" 29,\n",
" 30,\n",
" 31,\n",
" 32,\n",
" 33,\n",
" 34,\n",
" 35,\n",
" 36,\n",
" 37,\n",
" 38,\n",
" 39,\n",
" 40,\n",
" 41,\n",
" 42,\n",
" 43,\n",
" 44,\n",
" 45,\n",
" 46,\n",
" 47,\n",
" 48,\n",
" 49,\n",
" 50,\n",
" 51,\n",
" 52,\n",
" 53,\n",
" 54,\n",
" 55,\n",
" 56,\n",
" 57,\n",
" 58,\n",
" 59,\n",
" 60,\n",
" 61,\n",
" 62,\n",
" 63,\n",
" 64,\n",
" 65,\n",
" 66,\n",
" 67,\n",
" 68,\n",
" 69,\n",
" 70,\n",
" 71,\n",
" 72,\n",
" 73,\n",
" 74,\n",
" 75,\n",
" 76,\n",
" 77,\n",
" 78,\n",
" 79,\n",
" 80,\n",
" 81,\n",
" 82,\n",
" 83,\n",
" 84,\n",
" 85,\n",
" 86,\n",
" 87,\n",
" 88,\n",
" 89,\n",
" 90,\n",
" 91,\n",
" 92,\n",
" 93,\n",
" 94,\n",
" 95,\n",
" 96,\n",
" 97,\n",
" 98,\n",
" 99\n",
" ],\n",
" \"type\": \"float\"\n",
" },\n",
" \"y\": {\n",
" \"values\": [\n",
" 176.4052345967664,\n",
" 216.42095543348873,\n",
" 314.29475384406265,\n",
" 538.3840737642084,\n",
" 725.1398727792052,\n",
" 627.4120847915641,\n",
" 722.4209265441231,\n",
" 707.2852057143533,\n",
" 696.9633205349975,\n",
" 738.0231707288347,\n",
" 752.4275278449224,\n",
" 897.8548785412199,\n",
" 973.9586510559193,\n",
" 986.1261527052021,\n",
" 1030.5124759797447,\n",
" 1063.8799087171714,\n",
" 1213.2878160329321,\n",
" 1192.7719896563521,\n",
" 1224.0787598214422,\n",
" 1138.6691858912697,\n",
" 883.3702043078618,\n",
" 948.7320638518979,\n",
" 1035.1756837378484,\n",
" 960.9591816972043,\n",
" 1187.934644095965,\n",
" 1042.4980766360886,\n",
" 1047.0739283662333,\n",
" 1028.35554336365,\n",
" 1181.6334647994956,\n",
" 1328.569341789524,\n",
" 1344.0640843592157,\n",
" 1381.8803363194331,\n",
" 1293.101761556422,\n",
" 1095.0221147340291,\n",
" 1060.230899801414,\n",
" 1075.865796711812,\n",
" 1198.8948647845841,\n",
" 1319.1328496630253,\n",
" 1280.4001679222301,\n",
" 1250.1698928646965,\n",
" 1145.3145963579872,\n",
" 1003.3128026400898,\n",
" 832.6857835775885,\n",
" 1027.7633231007673,\n",
" 976.798104925602,\n",
" 932.9906747644834,\n",
" 807.7111387594907,\n",
" 885.4601743426817,\n",
" 724.0703895868866,\n",
" 702.7963615654897,\n",
" 613.2497054461222,\n",
" 651.9399552320484,\n",
" 600.8594414751611,\n",
" 482.7962230629199,\n",
" 479.97800022905443,\n",
" 522.8111872820962,\n",
" 529.462909520413,\n",
" 559.7100992943911,\n",
" 496.2778899262947,\n",
" 460.00377332758086,\n",
" 392.75772854998575,\n",
" 356.80241239593164,\n",
" 275.48778419148624,\n",
" 102.85952395831856,\n",
" 120.60213818369385,\n",
" 80.42404456286766,\n",
" -82.59579013373678,\n",
" -36.31756458115937,\n",
" -127.04740101948357,\n",
" -121.85286143986968,\n",
" -48.943805222116,\n",
" -36.04551414637493,\n",
" 77.89455430795514,\n",
" -45.58802772741012,\n",
" -5.353863609655221,\n",
" -73.83487270368654,\n",
" -160.91458762187472,\n",
" -218.79955409831626,\n",
" -249.95480731105351,\n",
" -244.33827308807898,\n",
" -360.8532571664146,\n",
" -270.7706084709959,\n",
" -224.20436449794994,\n",
" -377.82873312567233,\n",
" -229.00351374611236,\n",
" -39.41459614305404,\n",
" 78.46336097291103,\n",
" 60.47087739167594,\n",
" -46.604384759378306,\n",
" 58.840787933735356,\n",
" 18.523093236417395,\n",
" 140.76760027466014,\n",
" 161.59509808234617,\n",
" 259.25900173071744,\n",
" 294.8956414481576,\n",
" 365.55295826735243,\n",
" 366.6029603394345,\n",
" 545.190009730018,\n",
" 557.88121900038,\n",
" 598.0801553448502\n",
" ],\n",
" \"type\": \"float\"\n",
" }\n",
" }\n",
" },\n",
" \"0ceb1bd1553e4bcf86d553a803e991d3\": {\n",
" \"model_name\": \"AxisModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"scale\": \"IPY_MODEL_0acf6d9e9b5049098df0fdadbfa203e4\",\n",
" \"side\": \"bottom\",\n",
" \"tick_values\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" }\n",
" }\n",
" },\n",
" \"a0a862a305704b4583db52da5539ae65\": {\n",
" \"model_name\": \"AxisModel\",\n",
" \"model_module\": \"bqplot\",\n",
" \"model_module_version\": \"^0.4.5\",\n",
" \"state\": {\n",
" \"orientation\": \"vertical\",\n",
" \"scale\": \"IPY_MODEL_1b1f0f9af67844b7877b4692dfab0774\",\n",
" \"side\": \"left\",\n",
" \"tick_values\": {\n",
" \"values\": null,\n",
" \"type\": null\n",
" }\n",
" }\n",
" }\n",
" }\n",
"}\n",
"</script>\n",
"</head>\n",
"<body>\n",
"\n",
"<script type=\"application/vnd.jupyter.widget-view+json\">\n",
"{\n",
" \"version_major\": 2,\n",
" \"version_minor\": 0,\n",
" \"model_id\": \"680554fe790c494d886797929643e45c\"\n",
"}\n",
"</script>\n",
"\n",
"</body>\n",
"</html>\n",
"'''"
]
}
],
"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.2"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {
"00e95b876aad4de78dd3510cfee8d803": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinesModel",
"state": {
"color": {
"type": null,
"values": null
},
"display_legend": false,
"fill_colors": [],
"labels": [
"C1"
],
"scales": {
"x": "IPY_MODEL_24b0b7741ddf4729b189cec7cdc92199",
"y": "IPY_MODEL_a866407db334424fab5b5624bf983a12"
},
"selected": [],
"x": {
"type": "float",
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
]
},
"y": {
"type": "float",
"values": [
176.4052345967664,
216.42095543348873,
314.29475384406265,
538.3840737642084,
725.1398727792052,
627.4120847915641,
722.4209265441231,
707.2852057143533,
696.9633205349975,
738.0231707288347,
752.4275278449225,
897.8548785412199,
973.9586510559193,
986.1261527052021,
1030.5124759797447,
1063.8799087171715,
1213.2878160329321,
1192.7719896563522,
1224.0787598214422,
1138.6691858912698,
883.3702043078619,
948.7320638518979,
1035.1756837378484,
960.9591816972043,
1187.934644095965,
1042.4980766360886,
1047.0739283662333,
1028.35554336365,
1181.6334647994956,
1328.569341789524,
1344.0640843592157,
1381.8803363194331,
1293.101761556422,
1095.0221147340292,
1060.230899801414,
1075.865796711812,
1198.8948647845841,
1319.1328496630254,
1280.4001679222301,
1250.1698928646965,
1145.3145963579873,
1003.3128026400898,
832.6857835775885,
1027.7633231007674,
976.798104925602,
932.9906747644834,
807.7111387594907,
885.4601743426817,
724.0703895868866,
702.7963615654897,
613.2497054461222,
651.9399552320484,
600.8594414751611,
482.7962230629199,
479.97800022905443,
522.8111872820962,
529.462909520413,
559.7100992943911,
496.2778899262947,
460.00377332758086,
392.75772854998576,
356.80241239593164,
275.48778419148624,
102.85952395831856,
120.60213818369385,
80.42404456286766,
-82.59579013373678,
-36.31756458115937,
-127.04740101948357,
-121.85286143986968,
-48.943805222116,
-36.04551414637493,
77.89455430795515,
-45.58802772741012,
-5.353863609655221,
-73.83487270368654,
-160.91458762187472,
-218.79955409831626,
-249.95480731105351,
-244.33827308807898,
-360.8532571664146,
-270.7706084709959,
-224.20436449794994,
-377.82873312567233,
-229.00351374611236,
-39.41459614305404,
78.46336097291103,
60.47087739167594,
-46.604384759378306,
58.840787933735356,
18.523093236417395,
140.76760027466014,
161.59509808234617,
259.25900173071744,
294.8956414481576,
365.55295826735244,
366.6029603394345,
545.190009730018,
557.88121900038,
598.0801553448503
]
}
}
},
"032cc5aa4c104bf0acdd40c4d35faa29": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"stabilized": false
}
},
"169b3f4f157c4f02acae6415a3c577c0": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"allow_padding": false,
"max": 1,
"min": 0,
"stabilized": false
}
},
"18263731679e4d6abac08f9a86facbf1": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"allow_padding": false,
"max": 1,
"min": 0,
"stabilized": false
}
},
"1b97815e68df45aeb97634c94c6e4fd9": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "AxisModel",
"state": {
"orientation": "vertical",
"scale": "IPY_MODEL_488983f0ebad4f40913075cdf219e5eb",
"side": "left",
"tick_values": {
"type": null,
"values": null
}
}
},
"24b0b7741ddf4729b189cec7cdc92199": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"stabilized": false
}
},
"3b7c4a8e7fe94799ab763f5d46b36e2a": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"allow_padding": false,
"max": 1,
"min": 0,
"stabilized": false
}
},
"3f020b6fc0ab466b99d87af7f85fe6f1": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "FigureModel",
"state": {
"_dom_classes": [],
"axes": [
"IPY_MODEL_d64bea4a76e74a4ead1f895ebe801bdb",
"IPY_MODEL_5cf6b79269994174b0ef50bcc960a85e"
],
"layout": "IPY_MODEL_5c09972ccf144679b8546c6b5894e49a",
"marks": [
"IPY_MODEL_00e95b876aad4de78dd3510cfee8d803"
],
"scale_x": "IPY_MODEL_bd70a1fac69240b796ba2d6f709e35f2",
"scale_y": "IPY_MODEL_3b7c4a8e7fe94799ab763f5d46b36e2a",
"title": "First Example"
}
},
"488983f0ebad4f40913075cdf219e5eb": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"stabilized": false
}
},
"4d4ce554c06b49a59e4a607183d783c9": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "FigureModel",
"state": {
"_dom_classes": [],
"axes": [
"IPY_MODEL_d8a3274100c94111bb2ee6bec0fb02b2",
"IPY_MODEL_1b97815e68df45aeb97634c94c6e4fd9"
],
"layout": "IPY_MODEL_e841bdb3d88a404fb119d04a18eeb2b9",
"marks": [
"IPY_MODEL_ef74f0e012a947b28d5d63d785a3a1f1"
],
"scale_x": "IPY_MODEL_169b3f4f157c4f02acae6415a3c577c0",
"scale_y": "IPY_MODEL_18263731679e4d6abac08f9a86facbf1",
"title": "First Example"
}
},
"5c09972ccf144679b8546c6b5894e49a": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"model_name": "LayoutModel",
"state": {
"min_width": "125px"
}
},
"5cf6b79269994174b0ef50bcc960a85e": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "AxisModel",
"state": {
"orientation": "vertical",
"scale": "IPY_MODEL_a866407db334424fab5b5624bf983a12",
"side": "left",
"tick_values": {
"type": null,
"values": null
}
}
},
"a866407db334424fab5b5624bf983a12": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"stabilized": false
}
},
"bd70a1fac69240b796ba2d6f709e35f2": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinearScaleModel",
"state": {
"allow_padding": false,
"max": 1,
"min": 0,
"stabilized": false
}
},
"d64bea4a76e74a4ead1f895ebe801bdb": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "AxisModel",
"state": {
"scale": "IPY_MODEL_24b0b7741ddf4729b189cec7cdc92199",
"side": "bottom",
"tick_values": {
"type": null,
"values": null
}
}
},
"d8a3274100c94111bb2ee6bec0fb02b2": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "AxisModel",
"state": {
"scale": "IPY_MODEL_032cc5aa4c104bf0acdd40c4d35faa29",
"side": "bottom",
"tick_values": {
"type": null,
"values": null
}
}
},
"e841bdb3d88a404fb119d04a18eeb2b9": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"model_name": "LayoutModel",
"state": {
"min_width": "125px"
}
},
"ef74f0e012a947b28d5d63d785a3a1f1": {
"model_module": "bqplot",
"model_module_version": "^0.4.5",
"model_name": "LinesModel",
"state": {
"color": {
"type": null,
"values": null
},
"display_legend": false,
"fill_colors": [],
"labels": [
"C1"
],
"scales": {
"x": "IPY_MODEL_032cc5aa4c104bf0acdd40c4d35faa29",
"y": "IPY_MODEL_488983f0ebad4f40913075cdf219e5eb"
},
"selected": [],
"x": {
"type": "float",
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
]
},
"y": {
"type": "float",
"values": [
176.4052345967664,
216.42095543348873,
314.29475384406265,
538.3840737642084,
725.1398727792052,
627.4120847915641,
722.4209265441231,
707.2852057143533,
696.9633205349975,
738.0231707288347,
752.4275278449225,
897.8548785412199,
973.9586510559193,
986.1261527052021,
1030.5124759797447,
1063.8799087171715,
1213.2878160329321,
1192.7719896563522,
1224.0787598214422,
1138.6691858912698,
883.3702043078619,
948.7320638518979,
1035.1756837378484,
960.9591816972043,
1187.934644095965,
1042.4980766360886,
1047.0739283662333,
1028.35554336365,
1181.6334647994956,
1328.569341789524,
1344.0640843592157,
1381.8803363194331,
1293.101761556422,
1095.0221147340292,
1060.230899801414,
1075.865796711812,
1198.8948647845841,
1319.1328496630254,
1280.4001679222301,
1250.1698928646965,
1145.3145963579873,
1003.3128026400898,
832.6857835775885,
1027.7633231007674,
976.798104925602,
932.9906747644834,
807.7111387594907,
885.4601743426817,
724.0703895868866,
702.7963615654897,
613.2497054461222,
651.9399552320484,
600.8594414751611,
482.7962230629199,
479.97800022905443,
522.8111872820962,
529.462909520413,
559.7100992943911,
496.2778899262947,
460.00377332758086,
392.75772854998576,
356.80241239593164,
275.48778419148624,
102.85952395831856,
120.60213818369385,
80.42404456286766,
-82.59579013373678,
-36.31756458115937,
-127.04740101948357,
-121.85286143986968,
-48.943805222116,
-36.04551414637493,
77.89455430795515,
-45.58802772741012,
-5.353863609655221,
-73.83487270368654,
-160.91458762187472,
-218.79955409831626,
-249.95480731105351,
-244.33827308807898,
-360.8532571664146,
-270.7706084709959,
-224.20436449794994,
-377.82873312567233,
-229.00351374611236,
-39.41459614305404,
78.46336097291103,
60.47087739167594,
-46.604384759378306,
58.840787933735356,
18.523093236417395,
140.76760027466014,
161.59509808234617,
259.25900173071744,
294.8956414481576,
365.55295826735244,
366.6029603394345,
545.190009730018,
557.88121900038,
598.0801553448503
]
}
}
}
},
"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