rbplotly 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,82 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": false
8
- },
9
- "outputs": [
10
- {
11
- "data": {
12
- "text/html": [
13
- "\n",
14
- " <script>\n",
15
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
16
- " </script>\n",
17
- "\n",
18
- "\n",
19
- "<div id=\"b337b102-53ef-4d65-bc09-da1e140a6d72\" style=\"height: 100%; width: 100%;\"></div>\n",
20
- "\n",
21
- "<script>\n",
22
- " require(['plotly'], function(Plotly) { \n",
23
- "Plotly.newPlot(\n",
24
- " 'b337b102-53ef-4d65-bc09-da1e140a6d72',\n",
25
- " [{\"x\":[\"giraffes\",\"orangutans\",\"monkeys\"],\"y\":[20,14,23],\"type\":\"bar\"}],\n",
26
- " {},\n",
27
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
28
- ")\n",
29
- "\n",
30
- "window.addEventListener('resize', function() {\n",
31
- " Plotly.Plots.resize(document.getElementById('b337b102-53ef-4d65-bc09-da1e140a6d72'))\n",
32
- "})\n",
33
- " }) \n",
34
- "</script>"
35
- ],
36
- "text/plain": [
37
- "#<Plotly::Offline::HTML:0x007f9b6308a5d8 @id=\"b337b102-53ef-4d65-bc09-da1e140a6d72\", @data=[{:x=>[\"giraffes\", \"orangutans\", \"monkeys\"], :y=>[20, 14, 23], :type=>\"bar\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
38
- ]
39
- },
40
- "metadata": {},
41
- "output_type": "display_data"
42
- }
43
- ],
44
- "source": [
45
- "require 'rbplotly'\n",
46
- "\n",
47
- "data = { \n",
48
- " x: %w(giraffes orangutans monkeys),\n",
49
- " y: [20, 14, 23],\n",
50
- " type: 'bar'\n",
51
- "}\n",
52
- "\n",
53
- "plot = Plotly::Plot.new(data: [data])\n",
54
- "plot.show"
55
- ]
56
- },
57
- {
58
- "cell_type": "code",
59
- "execution_count": null,
60
- "metadata": {
61
- "collapsed": true
62
- },
63
- "outputs": [],
64
- "source": []
65
- }
66
- ],
67
- "metadata": {
68
- "kernelspec": {
69
- "display_name": "Ruby 2.3.1",
70
- "language": "ruby",
71
- "name": "ruby"
72
- },
73
- "language_info": {
74
- "file_extension": ".rb",
75
- "mimetype": "application/x-ruby",
76
- "name": "ruby",
77
- "version": "2.3.1"
78
- }
79
- },
80
- "nbformat": 4,
81
- "nbformat_minor": 1
82
- }
@@ -1,84 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": false
8
- },
9
- "outputs": [
10
- {
11
- "data": {
12
- "text/html": [
13
- "\n",
14
- " <script>\n",
15
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
16
- " </script>\n",
17
- "\n",
18
- "\n",
19
- "<div id=\"adb87990-69aa-40ab-9341-eeb2f8214292\" style=\"height: 100%; width: 100%;\"></div>\n",
20
- "\n",
21
- "<script>\n",
22
- " require(['plotly'], function(Plotly) { \n",
23
- "Plotly.newPlot(\n",
24
- " 'adb87990-69aa-40ab-9341-eeb2f8214292',\n",
25
- " [{\"labels\":[\"Residential\",\"Non-Residential\",\"Utility\"],\"values\":[19,26,55],\"type\":\"pie\"}],\n",
26
- " {\"title\":\"Forcasted 2014 U.S. PV Installations by Market Segment\"},\n",
27
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
28
- ")\n",
29
- "\n",
30
- "window.addEventListener('resize', function() {\n",
31
- " Plotly.Plots.resize(document.getElementById('adb87990-69aa-40ab-9341-eeb2f8214292'))\n",
32
- "})\n",
33
- " }) \n",
34
- "</script>"
35
- ],
36
- "text/plain": [
37
- "#<Plotly::Offline::HTML:0x007fb65404ed88 @id=\"adb87990-69aa-40ab-9341-eeb2f8214292\", @data=[{:labels=>[\"Residential\", \"Non-Residential\", \"Utility\"], :values=>[19, 26, 55], :type=>\"pie\"}], @layout={:title=>\"Forcasted 2014 U.S. PV Installations by Market Segment\"}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
38
- ]
39
- },
40
- "metadata": {},
41
- "output_type": "display_data"
42
- }
43
- ],
44
- "source": [
45
- "require 'rbplotly'\n",
46
- "\n",
47
- "data = {\n",
48
- " labels: %w(Residential Non-Residential Utility),\n",
49
- " values: [19, 26, 55],\n",
50
- " type: 'pie'\n",
51
- "}\n",
52
- "\n",
53
- "layout = { title: 'Forcasted 2014 U.S. PV Installations by Market Segment' }\n",
54
- "\n",
55
- "plot = Plotly::Plot.new(data: [data], layout: layout )\n",
56
- "plot.show"
57
- ]
58
- },
59
- {
60
- "cell_type": "code",
61
- "execution_count": null,
62
- "metadata": {
63
- "collapsed": true
64
- },
65
- "outputs": [],
66
- "source": []
67
- }
68
- ],
69
- "metadata": {
70
- "kernelspec": {
71
- "display_name": "Ruby 2.3.1",
72
- "language": "ruby",
73
- "name": "ruby"
74
- },
75
- "language_info": {
76
- "file_extension": ".rb",
77
- "mimetype": "application/x-ruby",
78
- "name": "ruby",
79
- "version": "2.3.1"
80
- }
81
- },
82
- "nbformat": 4,
83
- "nbformat_minor": 1
84
- }
@@ -1,89 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": false
8
- },
9
- "outputs": [
10
- {
11
- "data": {
12
- "text/html": [
13
- "\n",
14
- " <script>\n",
15
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
16
- " </script>\n",
17
- "\n",
18
- "\n",
19
- "<div id=\"920340e0-bd40-4446-940a-ff1e6c0872e1\" style=\"height: 100%; width: 100%;\"></div>\n",
20
- "\n",
21
- "<script>\n",
22
- " require(['plotly'], function(Plotly) { \n",
23
- "Plotly.newPlot(\n",
24
- " '920340e0-bd40-4446-940a-ff1e6c0872e1',\n",
25
- " [{\"x\":[\"giraffes\",\"orangutans\",\"monkeys\"],\"y\":[20,14,23],\"type\":\"bar\",\"name\":\"SF Zoo\"},{\"x\":[\"giraffes\",\"orangutans\",\"monkeys\"],\"y\":[12,18,29],\"type\":\"bar\",\"name\":\"LA Zoo\"}],\n",
26
- " {},\n",
27
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
28
- ")\n",
29
- "\n",
30
- "window.addEventListener('resize', function() {\n",
31
- " Plotly.Plots.resize(document.getElementById('920340e0-bd40-4446-940a-ff1e6c0872e1'))\n",
32
- "})\n",
33
- " }) \n",
34
- "</script>"
35
- ],
36
- "text/plain": [
37
- "#<Plotly::Offline::HTML:0x007fd2743299e0 @id=\"920340e0-bd40-4446-940a-ff1e6c0872e1\", @data=[{:x=>[\"giraffes\", \"orangutans\", \"monkeys\"], :y=>[20, 14, 23], :type=>\"bar\", :name=>\"SF Zoo\"}, {:x=>[\"giraffes\", \"orangutans\", \"monkeys\"], :y=>[12, 18, 29], :type=>\"bar\", :name=>\"LA Zoo\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
38
- ]
39
- },
40
- "metadata": {},
41
- "output_type": "display_data"
42
- }
43
- ],
44
- "source": [
45
- "require 'rbplotly'\n",
46
- "\n",
47
- "trace1 = {\n",
48
- " x: %w(giraffes orangutans monkeys),\n",
49
- " y: [20, 14, 23],\n",
50
- " type: 'bar',\n",
51
- " name: 'SF Zoo'\n",
52
- "}\n",
53
- "trace2 = {\n",
54
- " x: %w(giraffes orangutans monkeys),\n",
55
- " y: [12, 18, 29],\n",
56
- " type: 'bar',\n",
57
- " name: 'LA Zoo'\n",
58
- "}\n",
59
- "\n",
60
- "plot = Plotly::Plot.new(data: [trace1, trace2])\n",
61
- "plot.show"
62
- ]
63
- },
64
- {
65
- "cell_type": "code",
66
- "execution_count": null,
67
- "metadata": {
68
- "collapsed": true
69
- },
70
- "outputs": [],
71
- "source": []
72
- }
73
- ],
74
- "metadata": {
75
- "kernelspec": {
76
- "display_name": "Ruby 2.3.1",
77
- "language": "ruby",
78
- "name": "ruby"
79
- },
80
- "language_info": {
81
- "file_extension": ".rb",
82
- "mimetype": "application/x-ruby",
83
- "name": "ruby",
84
- "version": "2.3.1"
85
- }
86
- },
87
- "nbformat": 4,
88
- "nbformat_minor": 1
89
- }
@@ -1,227 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": false
8
- },
9
- "outputs": [
10
- {
11
- "data": {
12
- "text/html": [
13
- "\n",
14
- " <script>\n",
15
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
16
- " </script>\n",
17
- "\n",
18
- "\n",
19
- "<div id=\"6d1a85c0-74cb-48ee-9685-748bec582951\" style=\"height: 100%; width: 100%;\"></div>\n",
20
- "\n",
21
- "<script>\n",
22
- " require(['plotly'], function(Plotly) { \n",
23
- "Plotly.newPlot(\n",
24
- " '6d1a85c0-74cb-48ee-9685-748bec582951',\n",
25
- " [{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[5.643574849105169,4.961306066758519,4.060934803889124,3.414571515778032,3.197411503903012,3.2278637301592594,4.872105605880176,3.186894287301045,6.410507190686895,3.654375394859363,6.144401812948679,5.192899463415073,5.8904630069303625,4.049320930799653,4.864790426688506,4.816183710450119,6.099187602311419,3.9171455780212807,4.866614613413191,6.697259779947566,3.694022532442527,6.353507144539263,4.904665442566774,3.5897970270002344,4.45139368897716,3.923280428362602,5.281395053251372,4.8419034933281075,4.203666147182073,4.746377891662435,4.361637820104374,5.627462789773117,5.351768666729981,3.094692385328164,6.839030054843362,3.278166743991193,3.830059270315399,6.2024506808018245,6.214265570110114,4.202385347823167,3.8997675180587303,3.5805583787387603,3.7950796359559567,3.171619362136638,5.275605617318684,6.635818464397435,5.4106155598873045,5.076774881525382,3.0837731858523707,3.708524967452129,4.438729561323523,5.067911535349737,4.091430591263282,3.6341389770411716,5.188335596317376,4.236649806919521,4.71829089522835,4.932248853636338,5.126123634687506,3.1039398214544827,6.930884750814518,4.91388661568968,5.379882791817321,6.176476695475962,5.990598138280438,6.291616808752844,5.201026929785126,4.977227740756096,3.198345596621278,4.50300724674422,3.029246325995899,4.014484155725455,3.3953501769715344,6.1901035285059995,4.704259693763614,6.137490821869501,4.902373381687166,4.992645940018968,6.268387227733969,4.634123687345734,4.681321142919827,6.802345377946052,3.3732407151503883,3.99658618737928,3.1025732739847025,6.002190089000578,6.95813133077629,4.0285761714101325,4.902367512489361,6.044006159970719,5.62940680404261,3.8853853027542424,5.590250253235214,4.374223013871178,4.754674417824647,4.606267039693784,3.8201755584054613,4.140672180845154,3.6989351781619533,5.7879841884565035,5.228441158043866],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[0.8123607631786989,0.6146169695782269,-0.3497125391837561,-1.7494008686778253,0.8405806642848646,-0.8685408305210895,1.5329911873486615,-1.5835862397077083,-1.1818725686376128,1.574566945670453,1.8946753298989503,0.0720703976079462,-1.841159200976508,-1.7973525499084473,-0.17920297543475838,-0.7783156561426683,-0.6636585078502568,-0.9963484955312878,0.7968646130257651,1.4935185882875266,-0.033446058059578565,1.5496760229169326,-1.8124719780617418,-0.23314695457637535,1.0205724741886626,1.6893853411324709,-0.16066707293111548,1.6018862547070132,1.084765986212242,-0.30561398681465013,-0.3946264344948185,1.2519863402128149,-1.5491223802078684,-1.777165108138207,1.5790812673974708,0.6903880978976598,0.8824775837620655,1.5200700593452132,-1.8203846413127147,-1.6926108335067376,-0.939256717542476,1.7945969315376935,-1.2657096003072419,0.005677906072131478,-1.76733207641298,-0.5343727300838585,1.5961335674372492,-1.5010492315163124,0.30141376343729664,0.10641157413967273,-1.2208407071451743,0.2488828609220035,-1.081750317845807,0.15942886694990532,1.018956488329232,0.09691800433603737,-1.7448195686629204,-0.550384545829909,-0.9170856982914808,-0.8303886960218696,1.6758207311208788,-0.16145490372659488,0.7166817171917286,-1.3790887539829901,-0.726103928363492,0.4238421495317666,-0.11264580203837937,0.6173502320405349,-1.3294862728201489,0.40597717131517497,-0.12852003805824586,-1.3887347168891018,-1.4891091011568056,-0.8974736999169926,-1.380750276361817,-1.4570191330894184,-0.5567540128414512,0.6796992857518545,-0.8591924877967498,-0.8265235082791564,-1.4608891169553169,-1.6860024085779601,-0.33456399693442807,0.660125591962212,1.0316225228143354,-0.5501283120067075,-1.4714670266677947,-1.9920965144265828,-0.1454979863753043,-0.8038427045937353,0.19270179130817944,-1.4915761158223577,-0.3978404369994788,-0.9482199301688565,0.24458857930165934,1.4648824507754217,-0.9364069117828606,-1.8632178445680139,1.7683654986028743,0.6317118708119076,0.27850249217773726],\"type\":\"scatter\",\"mode\":\"markers+lines\"}],\n",
26
- " {},\n",
27
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
28
- ")\n",
29
- "\n",
30
- "window.addEventListener('resize', function() {\n",
31
- " Plotly.Plots.resize(document.getElementById('6d1a85c0-74cb-48ee-9685-748bec582951'))\n",
32
- "})\n",
33
- " }) \n",
34
- "</script>"
35
- ],
36
- "text/plain": [
37
- "#<Plotly::Offline::HTML:0x007fdb8b314200 @id=\"6d1a85c0-74cb-48ee-9685-748bec582951\", @data=[{:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[5.643574849105169, 4.961306066758519, 4.060934803889124, 3.414571515778032, 3.197411503903012, 3.2278637301592594, 4.872105605880176, 3.186894287301045, 6.410507190686895, 3.654375394859363, 6.144401812948679, 5.192899463415073, 5.8904630069303625, 4.049320930799653, 4.864790426688506, 4.816183710450119, 6.099187602311419, 3.9171455780212807, 4.866614613413191, 6.697259779947566, 3.694022532442527, 6.353507144539263, 4.904665442566774, 3.5897970270002344, 4.45139368897716, 3.923280428362602, 5.281395053251372, 4.8419034933281075, 4.203666147182073, 4.746377891662435, 4.361637820104374, 5.627462789773117, 5.351768666729981, 3.094692385328164, 6.839030054843362, 3.278166743991193, 3.830059270315399, 6.2024506808018245, 6.214265570110114, 4.202385347823167, 3.8997675180587303, 3.5805583787387603, 3.7950796359559567, 3.171619362136638, 5.275605617318684, 6.635818464397435, 5.4106155598873045, 5.076774881525382, 3.0837731858523707, 3.708524967452129, 4.438729561323523, 5.067911535349737, 4.091430591263282, 3.6341389770411716, 5.188335596317376, 4.236649806919521, 4.71829089522835, 4.932248853636338, 5.126123634687506, 3.1039398214544827, 6.930884750814518, 4.91388661568968, 5.379882791817321, 6.176476695475962, 5.990598138280438, 6.291616808752844, 5.201026929785126, 4.977227740756096, 3.198345596621278, 4.50300724674422, 3.029246325995899, 4.014484155725455, 3.3953501769715344, 6.1901035285059995, 4.704259693763614, 6.137490821869501, 4.902373381687166, 4.992645940018968, 6.268387227733969, 4.634123687345734, 4.681321142919827, 6.802345377946052, 3.3732407151503883, 3.99658618737928, 3.1025732739847025, 6.002190089000578, 6.95813133077629, 4.0285761714101325, 4.902367512489361, 6.044006159970719, 5.62940680404261, 3.8853853027542424, 5.590250253235214, 4.374223013871178, 4.754674417824647, 4.606267039693784, 3.8201755584054613, 4.140672180845154, 3.6989351781619533, 5.7879841884565035, 5.228441158043866], :type=>\"scatter\", :mode=>\"markers\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[0.8123607631786989, 0.6146169695782269, -0.3497125391837561, -1.7494008686778253, 0.8405806642848646, -0.8685408305210895, 1.5329911873486615, -1.5835862397077083, -1.1818725686376128, 1.574566945670453, 1.8946753298989503, 0.0720703976079462, -1.841159200976508, -1.7973525499084473, -0.17920297543475838, -0.7783156561426683, -0.6636585078502568, -0.9963484955312878, 0.7968646130257651, 1.4935185882875266, -0.033446058059578565, 1.5496760229169326, -1.8124719780617418, -0.23314695457637535, 1.0205724741886626, 1.6893853411324709, -0.16066707293111548, 1.6018862547070132, 1.084765986212242, -0.30561398681465013, -0.3946264344948185, 1.2519863402128149, -1.5491223802078684, -1.777165108138207, 1.5790812673974708, 0.6903880978976598, 0.8824775837620655, 1.5200700593452132, -1.8203846413127147, -1.6926108335067376, -0.939256717542476, 1.7945969315376935, -1.2657096003072419, 0.005677906072131478, -1.76733207641298, -0.5343727300838585, 1.5961335674372492, -1.5010492315163124, 0.30141376343729664, 0.10641157413967273, -1.2208407071451743, 0.2488828609220035, -1.081750317845807, 0.15942886694990532, 1.018956488329232, 0.09691800433603737, -1.7448195686629204, -0.550384545829909, -0.9170856982914808, -0.8303886960218696, 1.6758207311208788, -0.16145490372659488, 0.7166817171917286, -1.3790887539829901, -0.726103928363492, 0.4238421495317666, -0.11264580203837937, 0.6173502320405349, -1.3294862728201489, 0.40597717131517497, -0.12852003805824586, -1.3887347168891018, -1.4891091011568056, -0.8974736999169926, -1.380750276361817, -1.4570191330894184, -0.5567540128414512, 0.6796992857518545, -0.8591924877967498, -0.8265235082791564, -1.4608891169553169, -1.6860024085779601, -0.33456399693442807, 0.660125591962212, 1.0316225228143354, -0.5501283120067075, -1.4714670266677947, -1.9920965144265828, -0.1454979863753043, -0.8038427045937353, 0.19270179130817944, -1.4915761158223577, -0.3978404369994788, -0.9482199301688565, 0.24458857930165934, 1.4648824507754217, -0.9364069117828606, -1.8632178445680139, 1.7683654986028743, 0.6317118708119076, 0.27850249217773726], :type=>\"scatter\", :mode=>\"markers+lines\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
38
- ]
39
- },
40
- "metadata": {},
41
- "output_type": "display_data"
42
- }
43
- ],
44
- "source": [
45
- "require 'rbplotly'\n",
46
- "\n",
47
- "n = 100\n",
48
- "\n",
49
- "x = (0..n).map { |i| i.to_f / n }\n",
50
- "y0 = (0..n).map { rand(-2.0..2.0) + 5 }\n",
51
- "y1 = (0..n).map { rand(-2.0..2.0) }\n",
52
- "\n",
53
- "trace0 = { x: x, y: y0, type: 'scatter', mode: 'markers' }\n",
54
- "trace1 = trace0.merge(y: y1, mode: 'markers+lines')\n",
55
- "\n",
56
- "plot = Plotly::Plot.new(data: [trace0, trace1])\n",
57
- "plot.show"
58
- ]
59
- },
60
- {
61
- "cell_type": "code",
62
- "execution_count": 2,
63
- "metadata": {
64
- "collapsed": false
65
- },
66
- "outputs": [
67
- {
68
- "data": {
69
- "text/html": [
70
- "\n",
71
- " <script>\n",
72
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
73
- " </script>\n",
74
- "\n",
75
- "\n",
76
- "<div id=\"ca90b2d8-46df-4529-95a8-90a3e48e32ce\" style=\"height: 100%; width: 100%;\"></div>\n",
77
- "\n",
78
- "<script>\n",
79
- " require(['plotly'], function(Plotly) { \n",
80
- "Plotly.newPlot(\n",
81
- " 'ca90b2d8-46df-4529-95a8-90a3e48e32ce',\n",
82
- " [{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[5.643574849105169,4.961306066758519,4.060934803889124,3.414571515778032,3.197411503903012,3.2278637301592594,4.872105605880176,3.186894287301045,6.410507190686895,3.654375394859363,6.144401812948679,5.192899463415073,5.8904630069303625,4.049320930799653,4.864790426688506,4.816183710450119,6.099187602311419,3.9171455780212807,4.866614613413191,6.697259779947566,3.694022532442527,6.353507144539263,4.904665442566774,3.5897970270002344,4.45139368897716,3.923280428362602,5.281395053251372,4.8419034933281075,4.203666147182073,4.746377891662435,4.361637820104374,5.627462789773117,5.351768666729981,3.094692385328164,6.839030054843362,3.278166743991193,3.830059270315399,6.2024506808018245,6.214265570110114,4.202385347823167,3.8997675180587303,3.5805583787387603,3.7950796359559567,3.171619362136638,5.275605617318684,6.635818464397435,5.4106155598873045,5.076774881525382,3.0837731858523707,3.708524967452129,4.438729561323523,5.067911535349737,4.091430591263282,3.6341389770411716,5.188335596317376,4.236649806919521,4.71829089522835,4.932248853636338,5.126123634687506,3.1039398214544827,6.930884750814518,4.91388661568968,5.379882791817321,6.176476695475962,5.990598138280438,6.291616808752844,5.201026929785126,4.977227740756096,3.198345596621278,4.50300724674422,3.029246325995899,4.014484155725455,3.3953501769715344,6.1901035285059995,4.704259693763614,6.137490821869501,4.902373381687166,4.992645940018968,6.268387227733969,4.634123687345734,4.681321142919827,6.802345377946052,3.3732407151503883,3.99658618737928,3.1025732739847025,6.002190089000578,6.95813133077629,4.0285761714101325,4.902367512489361,6.044006159970719,5.62940680404261,3.8853853027542424,5.590250253235214,4.374223013871178,4.754674417824647,4.606267039693784,3.8201755584054613,4.140672180845154,3.6989351781619533,5.7879841884565035,5.228441158043866],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[0.2918470322309492,0.06784672036348016,-0.25527629967714394,0.29401864561379876,-0.08568254608572456,0.17712162743022564,0.26627759005907503,0.020384797819056444,0.28502289639693523,0.08007853199056048,-0.19734214257260274,0.11817015271094344,-0.027903131339155562,0.04553219635709904,0.4055360939507664,-0.45509583087448746,-0.33102521139201024,0.06941561309717514,0.017814885421255422,0.4793591894071675,0.07162445344284951,0.3344137369225737,0.4448499371114156,0.251494553190321,0.3447209883729694,-0.45099499352739925,0.004783736692153151,0.14339717138861385,0.26628704140365667,-0.2629054066581673,-0.4503577922538329,0.08265760555530632,-0.22143991811936414,-0.23580415456704396,0.26322659840296936,-0.128788848929415,-0.4170688408115917,-0.014077203115443027,0.3395412388199053,-0.4850347285370541,0.4960429773944819,0.3040784936087565,0.16948992932608808,0.4077010559984423,-0.3886198372731159,-0.34784790849691916,0.29202365040433176,-0.18168304192783602,-0.0367643830189156,-0.21911865820667176,0.020101721514611315,-0.05111380252546571,0.4949648524115432,-0.24758597930070703,0.01660629531212976,0.016854088964895042,-0.4665684099945626,0.3566923305416577,-0.4092945154102625,-0.13259686509784563,0.45300974197215516,0.45410647894310074,0.45495676434830457,0.15086320701033495,0.2934602634074398,-0.0903957850447864,0.49890589904526295,0.3792028397429186,-0.4721034288623185,0.11137669317514398,0.3985340067747464,0.2508261947952485,-0.0645820819035493,0.35693729492652293,-0.30828956162814736,0.4993844733250866,-0.44435233382164685,-0.043080446873944966,-0.3432782593068676,-0.4240771326034558,0.32542579346206735,0.29953033373629523,0.1687090840705241,0.3555759037032399,-0.21620013268854754,0.07570042984091019,-0.39864335805086437,0.2804345656617052,0.19934148576641586,0.31810414669918974,-0.165606670036899,0.26578729184618066,0.2474034933969026,-0.39983517652623746,-0.4344252880801087,-0.03626036802717547,-0.03005067553304208,0.38095357564818966,0.4139286965201181,-0.3988083478311877,-0.3342289107811315],\"type\":\"scatter\",\"mode\":\"markers+lines\"}],\n",
83
- " {},\n",
84
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
85
- ")\n",
86
- "\n",
87
- "window.addEventListener('resize', function() {\n",
88
- " Plotly.Plots.resize(document.getElementById('ca90b2d8-46df-4529-95a8-90a3e48e32ce'))\n",
89
- "})\n",
90
- " }) \n",
91
- "</script>"
92
- ],
93
- "text/plain": [
94
- "#<Plotly::Offline::HTML:0x007fdb8b23fbe0 @id=\"ca90b2d8-46df-4529-95a8-90a3e48e32ce\", @data=[{:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[5.643574849105169, 4.961306066758519, 4.060934803889124, 3.414571515778032, 3.197411503903012, 3.2278637301592594, 4.872105605880176, 3.186894287301045, 6.410507190686895, 3.654375394859363, 6.144401812948679, 5.192899463415073, 5.8904630069303625, 4.049320930799653, 4.864790426688506, 4.816183710450119, 6.099187602311419, 3.9171455780212807, 4.866614613413191, 6.697259779947566, 3.694022532442527, 6.353507144539263, 4.904665442566774, 3.5897970270002344, 4.45139368897716, 3.923280428362602, 5.281395053251372, 4.8419034933281075, 4.203666147182073, 4.746377891662435, 4.361637820104374, 5.627462789773117, 5.351768666729981, 3.094692385328164, 6.839030054843362, 3.278166743991193, 3.830059270315399, 6.2024506808018245, 6.214265570110114, 4.202385347823167, 3.8997675180587303, 3.5805583787387603, 3.7950796359559567, 3.171619362136638, 5.275605617318684, 6.635818464397435, 5.4106155598873045, 5.076774881525382, 3.0837731858523707, 3.708524967452129, 4.438729561323523, 5.067911535349737, 4.091430591263282, 3.6341389770411716, 5.188335596317376, 4.236649806919521, 4.71829089522835, 4.932248853636338, 5.126123634687506, 3.1039398214544827, 6.930884750814518, 4.91388661568968, 5.379882791817321, 6.176476695475962, 5.990598138280438, 6.291616808752844, 5.201026929785126, 4.977227740756096, 3.198345596621278, 4.50300724674422, 3.029246325995899, 4.014484155725455, 3.3953501769715344, 6.1901035285059995, 4.704259693763614, 6.137490821869501, 4.902373381687166, 4.992645940018968, 6.268387227733969, 4.634123687345734, 4.681321142919827, 6.802345377946052, 3.3732407151503883, 3.99658618737928, 3.1025732739847025, 6.002190089000578, 6.95813133077629, 4.0285761714101325, 4.902367512489361, 6.044006159970719, 5.62940680404261, 3.8853853027542424, 5.590250253235214, 4.374223013871178, 4.754674417824647, 4.606267039693784, 3.8201755584054613, 4.140672180845154, 3.6989351781619533, 5.7879841884565035, 5.228441158043866], :type=>\"scatter\", :mode=>\"markers\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[0.2918470322309492, 0.06784672036348016, -0.25527629967714394, 0.29401864561379876, -0.08568254608572456, 0.17712162743022564, 0.26627759005907503, 0.020384797819056444, 0.28502289639693523, 0.08007853199056048, -0.19734214257260274, 0.11817015271094344, -0.027903131339155562, 0.04553219635709904, 0.4055360939507664, -0.45509583087448746, -0.33102521139201024, 0.06941561309717514, 0.017814885421255422, 0.4793591894071675, 0.07162445344284951, 0.3344137369225737, 0.4448499371114156, 0.251494553190321, 0.3447209883729694, -0.45099499352739925, 0.004783736692153151, 0.14339717138861385, 0.26628704140365667, -0.2629054066581673, -0.4503577922538329, 0.08265760555530632, -0.22143991811936414, -0.23580415456704396, 0.26322659840296936, -0.128788848929415, -0.4170688408115917, -0.014077203115443027, 0.3395412388199053, -0.4850347285370541, 0.4960429773944819, 0.3040784936087565, 0.16948992932608808, 0.4077010559984423, -0.3886198372731159, -0.34784790849691916, 0.29202365040433176, -0.18168304192783602, -0.0367643830189156, -0.21911865820667176, 0.020101721514611315, -0.05111380252546571, 0.4949648524115432, -0.24758597930070703, 0.01660629531212976, 0.016854088964895042, -0.4665684099945626, 0.3566923305416577, -0.4092945154102625, -0.13259686509784563, 0.45300974197215516, 0.45410647894310074, 0.45495676434830457, 0.15086320701033495, 0.2934602634074398, -0.0903957850447864, 0.49890589904526295, 0.3792028397429186, -0.4721034288623185, 0.11137669317514398, 0.3985340067747464, 0.2508261947952485, -0.0645820819035493, 0.35693729492652293, -0.30828956162814736, 0.4993844733250866, -0.44435233382164685, -0.043080446873944966, -0.3432782593068676, -0.4240771326034558, 0.32542579346206735, 0.29953033373629523, 0.1687090840705241, 0.3555759037032399, -0.21620013268854754, 0.07570042984091019, -0.39864335805086437, 0.2804345656617052, 0.19934148576641586, 0.31810414669918974, -0.165606670036899, 0.26578729184618066, 0.2474034933969026, -0.39983517652623746, -0.4344252880801087, -0.03626036802717547, -0.03005067553304208, 0.38095357564818966, 0.4139286965201181, -0.3988083478311877, -0.3342289107811315], :type=>\"scatter\", :mode=>\"markers+lines\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
95
- ]
96
- },
97
- "metadata": {},
98
- "output_type": "display_data"
99
- }
100
- ],
101
- "source": [
102
- "plot.data.last.y = (0..n).map { rand(-0.5..0.5) }\n",
103
- "plot.show"
104
- ]
105
- },
106
- {
107
- "cell_type": "code",
108
- "execution_count": 3,
109
- "metadata": {
110
- "collapsed": false
111
- },
112
- "outputs": [
113
- {
114
- "data": {
115
- "text/html": [
116
- "\n",
117
- " <script>\n",
118
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
119
- " </script>\n",
120
- "\n",
121
- "\n",
122
- "<div id=\"2fd68f11-927b-476e-800f-7871618e25f5\" style=\"height: 100%; width: 100%;\"></div>\n",
123
- "\n",
124
- "<script>\n",
125
- " require(['plotly'], function(Plotly) { \n",
126
- "Plotly.newPlot(\n",
127
- " '2fd68f11-927b-476e-800f-7871618e25f5',\n",
128
- " [{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[5.643574849105169,4.961306066758519,4.060934803889124,3.414571515778032,3.197411503903012,3.2278637301592594,4.872105605880176,3.186894287301045,6.410507190686895,3.654375394859363,6.144401812948679,5.192899463415073,5.8904630069303625,4.049320930799653,4.864790426688506,4.816183710450119,6.099187602311419,3.9171455780212807,4.866614613413191,6.697259779947566,3.694022532442527,6.353507144539263,4.904665442566774,3.5897970270002344,4.45139368897716,3.923280428362602,5.281395053251372,4.8419034933281075,4.203666147182073,4.746377891662435,4.361637820104374,5.627462789773117,5.351768666729981,3.094692385328164,6.839030054843362,3.278166743991193,3.830059270315399,6.2024506808018245,6.214265570110114,4.202385347823167,3.8997675180587303,3.5805583787387603,3.7950796359559567,3.171619362136638,5.275605617318684,6.635818464397435,5.4106155598873045,5.076774881525382,3.0837731858523707,3.708524967452129,4.438729561323523,5.067911535349737,4.091430591263282,3.6341389770411716,5.188335596317376,4.236649806919521,4.71829089522835,4.932248853636338,5.126123634687506,3.1039398214544827,6.930884750814518,4.91388661568968,5.379882791817321,6.176476695475962,5.990598138280438,6.291616808752844,5.201026929785126,4.977227740756096,3.198345596621278,4.50300724674422,3.029246325995899,4.014484155725455,3.3953501769715344,6.1901035285059995,4.704259693763614,6.137490821869501,4.902373381687166,4.992645940018968,6.268387227733969,4.634123687345734,4.681321142919827,6.802345377946052,3.3732407151503883,3.99658618737928,3.1025732739847025,6.002190089000578,6.95813133077629,4.0285761714101325,4.902367512489361,6.044006159970719,5.62940680404261,3.8853853027542424,5.590250253235214,4.374223013871178,4.754674417824647,4.606267039693784,3.8201755584054613,4.140672180845154,3.6989351781619533,5.7879841884565035,5.228441158043866],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[0.2918470322309492,0.06784672036348016,-0.25527629967714394,0.29401864561379876,-0.08568254608572456,0.17712162743022564,0.26627759005907503,0.020384797819056444,0.28502289639693523,0.08007853199056048,-0.19734214257260274,0.11817015271094344,-0.027903131339155562,0.04553219635709904,0.4055360939507664,-0.45509583087448746,-0.33102521139201024,0.06941561309717514,0.017814885421255422,0.4793591894071675,0.07162445344284951,0.3344137369225737,0.4448499371114156,0.251494553190321,0.3447209883729694,-0.45099499352739925,0.004783736692153151,0.14339717138861385,0.26628704140365667,-0.2629054066581673,-0.4503577922538329,0.08265760555530632,-0.22143991811936414,-0.23580415456704396,0.26322659840296936,-0.128788848929415,-0.4170688408115917,-0.014077203115443027,0.3395412388199053,-0.4850347285370541,0.4960429773944819,0.3040784936087565,0.16948992932608808,0.4077010559984423,-0.3886198372731159,-0.34784790849691916,0.29202365040433176,-0.18168304192783602,-0.0367643830189156,-0.21911865820667176,0.020101721514611315,-0.05111380252546571,0.4949648524115432,-0.24758597930070703,0.01660629531212976,0.016854088964895042,-0.4665684099945626,0.3566923305416577,-0.4092945154102625,-0.13259686509784563,0.45300974197215516,0.45410647894310074,0.45495676434830457,0.15086320701033495,0.2934602634074398,-0.0903957850447864,0.49890589904526295,0.3792028397429186,-0.4721034288623185,0.11137669317514398,0.3985340067747464,0.2508261947952485,-0.0645820819035493,0.35693729492652293,-0.30828956162814736,0.4993844733250866,-0.44435233382164685,-0.043080446873944966,-0.3432782593068676,-0.4240771326034558,0.32542579346206735,0.29953033373629523,0.1687090840705241,0.3555759037032399,-0.21620013268854754,0.07570042984091019,-0.39864335805086437,0.2804345656617052,0.19934148576641586,0.31810414669918974,-0.165606670036899,0.26578729184618066,0.2474034933969026,-0.39983517652623746,-0.4344252880801087,-0.03626036802717547,-0.03005067553304208,0.38095357564818966,0.4139286965201181,-0.3988083478311877,-0.3342289107811315],\"type\":\"scatter\",\"mode\":\"markers+lines\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[-5.118541279858697,-4.336928800939507,-3.9385408402956856,-5.13510660947426,-4.375182681191897,-4.266382896354829,-6.693443541975876,-6.068485174327739,-5.434508056276314,-6.348461280217517,-5.905133751421397,-5.213224971463147,-3.5734488291532553,-5.972821323626621,-6.668739355256433,-6.58990218086364,-6.1131559491866465,-5.426205049616756,-4.899390759059109,-5.095936685076762,-6.439631349138296,-3.7398545218636605,-3.250041192105066,-4.158814185998766,-5.418745598349464,-6.242926036175403,-5.973966460366805,-6.312228424139535,-6.520655870249062,-6.865773343104487,-3.3008248597542553,-6.277665827849311,-6.162921326750342,-3.135067725585891,-6.2572485618789875,-6.306895083670741,-5.353938555632384,-3.9295367886096355,-3.6233239677235125,-3.5643818702980914,-5.69180840299496,-5.313294977420196,-6.314156738567251,-3.623851578109708,-5.076276675460165,-5.012832082845858,-5.904876759183978,-6.596270545713277,-5.342939206155604,-6.535379955178368,-4.550847760425438,-5.588014465130651,-4.088429607922308,-3.736465125338768,-3.498656210626582,-5.337687693604439,-4.220374167524718,-6.635002232099147,-4.840706384807957,-4.413167412082267,-6.064534734908628,-3.063899010586587,-3.0755793590099243,-6.609516541588117,-3.3900904528581925,-5.717459621278913,-4.747963151238187,-5.509311838115293,-4.546430901778218,-6.179389954620724,-6.326344499974565,-5.702153345566668,-4.697112553635738,-4.307817127690438,-5.306232181842763,-4.6888424726672895,-6.116099946507546,-5.459651715947887,-3.434443858297593,-3.027927355248377,-3.9598318496065086,-3.9336284183578507,-6.164724361210634,-5.1866572534102815,-4.988434421931455,-3.4106670454991024,-5.267104798446782,-4.454298342677626,-5.513140188559842,-6.349988769692197,-4.176749108266341,-4.06241885927677,-5.928197893742187,-4.164944572840207,-5.685906073404755,-4.741524561494865,-5.621053943182366,-3.7275906014333917,-4.912460964591176,-4.722591380631442,-6.836170464036709],\"type\":\"scatter\",\"mode\":\"lines\"}],\n",
129
- " {},\n",
130
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
131
- ")\n",
132
- "\n",
133
- "window.addEventListener('resize', function() {\n",
134
- " Plotly.Plots.resize(document.getElementById('2fd68f11-927b-476e-800f-7871618e25f5'))\n",
135
- "})\n",
136
- " }) \n",
137
- "</script>"
138
- ],
139
- "text/plain": [
140
- "#<Plotly::Offline::HTML:0x007fdb8b184a20 @id=\"2fd68f11-927b-476e-800f-7871618e25f5\", @data=[{:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[5.643574849105169, 4.961306066758519, 4.060934803889124, 3.414571515778032, 3.197411503903012, 3.2278637301592594, 4.872105605880176, 3.186894287301045, 6.410507190686895, 3.654375394859363, 6.144401812948679, 5.192899463415073, 5.8904630069303625, 4.049320930799653, 4.864790426688506, 4.816183710450119, 6.099187602311419, 3.9171455780212807, 4.866614613413191, 6.697259779947566, 3.694022532442527, 6.353507144539263, 4.904665442566774, 3.5897970270002344, 4.45139368897716, 3.923280428362602, 5.281395053251372, 4.8419034933281075, 4.203666147182073, 4.746377891662435, 4.361637820104374, 5.627462789773117, 5.351768666729981, 3.094692385328164, 6.839030054843362, 3.278166743991193, 3.830059270315399, 6.2024506808018245, 6.214265570110114, 4.202385347823167, 3.8997675180587303, 3.5805583787387603, 3.7950796359559567, 3.171619362136638, 5.275605617318684, 6.635818464397435, 5.4106155598873045, 5.076774881525382, 3.0837731858523707, 3.708524967452129, 4.438729561323523, 5.067911535349737, 4.091430591263282, 3.6341389770411716, 5.188335596317376, 4.236649806919521, 4.71829089522835, 4.932248853636338, 5.126123634687506, 3.1039398214544827, 6.930884750814518, 4.91388661568968, 5.379882791817321, 6.176476695475962, 5.990598138280438, 6.291616808752844, 5.201026929785126, 4.977227740756096, 3.198345596621278, 4.50300724674422, 3.029246325995899, 4.014484155725455, 3.3953501769715344, 6.1901035285059995, 4.704259693763614, 6.137490821869501, 4.902373381687166, 4.992645940018968, 6.268387227733969, 4.634123687345734, 4.681321142919827, 6.802345377946052, 3.3732407151503883, 3.99658618737928, 3.1025732739847025, 6.002190089000578, 6.95813133077629, 4.0285761714101325, 4.902367512489361, 6.044006159970719, 5.62940680404261, 3.8853853027542424, 5.590250253235214, 4.374223013871178, 4.754674417824647, 4.606267039693784, 3.8201755584054613, 4.140672180845154, 3.6989351781619533, 5.7879841884565035, 5.228441158043866], :type=>\"scatter\", :mode=>\"markers\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[0.2918470322309492, 0.06784672036348016, -0.25527629967714394, 0.29401864561379876, -0.08568254608572456, 0.17712162743022564, 0.26627759005907503, 0.020384797819056444, 0.28502289639693523, 0.08007853199056048, -0.19734214257260274, 0.11817015271094344, -0.027903131339155562, 0.04553219635709904, 0.4055360939507664, -0.45509583087448746, -0.33102521139201024, 0.06941561309717514, 0.017814885421255422, 0.4793591894071675, 0.07162445344284951, 0.3344137369225737, 0.4448499371114156, 0.251494553190321, 0.3447209883729694, -0.45099499352739925, 0.004783736692153151, 0.14339717138861385, 0.26628704140365667, -0.2629054066581673, -0.4503577922538329, 0.08265760555530632, -0.22143991811936414, -0.23580415456704396, 0.26322659840296936, -0.128788848929415, -0.4170688408115917, -0.014077203115443027, 0.3395412388199053, -0.4850347285370541, 0.4960429773944819, 0.3040784936087565, 0.16948992932608808, 0.4077010559984423, -0.3886198372731159, -0.34784790849691916, 0.29202365040433176, -0.18168304192783602, -0.0367643830189156, -0.21911865820667176, 0.020101721514611315, -0.05111380252546571, 0.4949648524115432, -0.24758597930070703, 0.01660629531212976, 0.016854088964895042, -0.4665684099945626, 0.3566923305416577, -0.4092945154102625, -0.13259686509784563, 0.45300974197215516, 0.45410647894310074, 0.45495676434830457, 0.15086320701033495, 0.2934602634074398, -0.0903957850447864, 0.49890589904526295, 0.3792028397429186, -0.4721034288623185, 0.11137669317514398, 0.3985340067747464, 0.2508261947952485, -0.0645820819035493, 0.35693729492652293, -0.30828956162814736, 0.4993844733250866, -0.44435233382164685, -0.043080446873944966, -0.3432782593068676, -0.4240771326034558, 0.32542579346206735, 0.29953033373629523, 0.1687090840705241, 0.3555759037032399, -0.21620013268854754, 0.07570042984091019, -0.39864335805086437, 0.2804345656617052, 0.19934148576641586, 0.31810414669918974, -0.165606670036899, 0.26578729184618066, 0.2474034933969026, -0.39983517652623746, -0.4344252880801087, -0.03626036802717547, -0.03005067553304208, 0.38095357564818966, 0.4139286965201181, -0.3988083478311877, -0.3342289107811315], :type=>\"scatter\", :mode=>\"markers+lines\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[-5.118541279858697, -4.336928800939507, -3.9385408402956856, -5.13510660947426, -4.375182681191897, -4.266382896354829, -6.693443541975876, -6.068485174327739, -5.434508056276314, -6.348461280217517, -5.905133751421397, -5.213224971463147, -3.5734488291532553, -5.972821323626621, -6.668739355256433, -6.58990218086364, -6.1131559491866465, -5.426205049616756, -4.899390759059109, -5.095936685076762, -6.439631349138296, -3.7398545218636605, -3.250041192105066, -4.158814185998766, -5.418745598349464, -6.242926036175403, -5.973966460366805, -6.312228424139535, -6.520655870249062, -6.865773343104487, -3.3008248597542553, -6.277665827849311, -6.162921326750342, -3.135067725585891, -6.2572485618789875, -6.306895083670741, -5.353938555632384, -3.9295367886096355, -3.6233239677235125, -3.5643818702980914, -5.69180840299496, -5.313294977420196, -6.314156738567251, -3.623851578109708, -5.076276675460165, -5.012832082845858, -5.904876759183978, -6.596270545713277, -5.342939206155604, -6.535379955178368, -4.550847760425438, -5.588014465130651, -4.088429607922308, -3.736465125338768, -3.498656210626582, -5.337687693604439, -4.220374167524718, -6.635002232099147, -4.840706384807957, -4.413167412082267, -6.064534734908628, -3.063899010586587, -3.0755793590099243, -6.609516541588117, -3.3900904528581925, -5.717459621278913, -4.747963151238187, -5.509311838115293, -4.546430901778218, -6.179389954620724, -6.326344499974565, -5.702153345566668, -4.697112553635738, -4.307817127690438, -5.306232181842763, -4.6888424726672895, -6.116099946507546, -5.459651715947887, -3.434443858297593, -3.027927355248377, -3.9598318496065086, -3.9336284183578507, -6.164724361210634, -5.1866572534102815, -4.988434421931455, -3.4106670454991024, -5.267104798446782, -4.454298342677626, -5.513140188559842, -6.349988769692197, -4.176749108266341, -4.06241885927677, -5.928197893742187, -4.164944572840207, -5.685906073404755, -4.741524561494865, -5.621053943182366, -3.7275906014333917, -4.912460964591176, -4.722591380631442, -6.836170464036709], :type=>\"scatter\", :mode=>\"lines\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
141
- ]
142
- },
143
- "metadata": {},
144
- "output_type": "display_data"
145
- }
146
- ],
147
- "source": [
148
- "new_trace = { x: x, y: (0..n).map { rand(-2.0..2.0) - 5 }, type: 'scatter', mode: 'lines' }\n",
149
- "plot.add_data(new_trace)\n",
150
- "plot.show"
151
- ]
152
- },
153
- {
154
- "cell_type": "code",
155
- "execution_count": 4,
156
- "metadata": {
157
- "collapsed": false,
158
- "scrolled": true
159
- },
160
- "outputs": [
161
- {
162
- "data": {
163
- "text/html": [
164
- "\n",
165
- " <script>\n",
166
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
167
- " </script>\n",
168
- "\n",
169
- "\n",
170
- "<div id=\"367ce7b1-69c8-4818-b2df-d15de5d19496\" style=\"height: 100%; width: 100%;\"></div>\n",
171
- "\n",
172
- "<script>\n",
173
- " require(['plotly'], function(Plotly) { \n",
174
- "Plotly.newPlot(\n",
175
- " '367ce7b1-69c8-4818-b2df-d15de5d19496',\n",
176
- " [{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[5.643574849105169,4.961306066758519,4.060934803889124,3.414571515778032,3.197411503903012,3.2278637301592594,4.872105605880176,3.186894287301045,6.410507190686895,3.654375394859363,6.144401812948679,5.192899463415073,5.8904630069303625,4.049320930799653,4.864790426688506,4.816183710450119,6.099187602311419,3.9171455780212807,4.866614613413191,6.697259779947566,3.694022532442527,6.353507144539263,4.904665442566774,3.5897970270002344,4.45139368897716,3.923280428362602,5.281395053251372,4.8419034933281075,4.203666147182073,4.746377891662435,4.361637820104374,5.627462789773117,5.351768666729981,3.094692385328164,6.839030054843362,3.278166743991193,3.830059270315399,6.2024506808018245,6.214265570110114,4.202385347823167,3.8997675180587303,3.5805583787387603,3.7950796359559567,3.171619362136638,5.275605617318684,6.635818464397435,5.4106155598873045,5.076774881525382,3.0837731858523707,3.708524967452129,4.438729561323523,5.067911535349737,4.091430591263282,3.6341389770411716,5.188335596317376,4.236649806919521,4.71829089522835,4.932248853636338,5.126123634687506,3.1039398214544827,6.930884750814518,4.91388661568968,5.379882791817321,6.176476695475962,5.990598138280438,6.291616808752844,5.201026929785126,4.977227740756096,3.198345596621278,4.50300724674422,3.029246325995899,4.014484155725455,3.3953501769715344,6.1901035285059995,4.704259693763614,6.137490821869501,4.902373381687166,4.992645940018968,6.268387227733969,4.634123687345734,4.681321142919827,6.802345377946052,3.3732407151503883,3.99658618737928,3.1025732739847025,6.002190089000578,6.95813133077629,4.0285761714101325,4.902367512489361,6.044006159970719,5.62940680404261,3.8853853027542424,5.590250253235214,4.374223013871178,4.754674417824647,4.606267039693784,3.8201755584054613,4.140672180845154,3.6989351781619533,5.7879841884565035,5.228441158043866],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[0.2918470322309492,0.06784672036348016,-0.25527629967714394,0.29401864561379876,-0.08568254608572456,0.17712162743022564,0.26627759005907503,0.020384797819056444,0.28502289639693523,0.08007853199056048,-0.19734214257260274,0.11817015271094344,-0.027903131339155562,0.04553219635709904,0.4055360939507664,-0.45509583087448746,-0.33102521139201024,0.06941561309717514,0.017814885421255422,0.4793591894071675,0.07162445344284951,0.3344137369225737,0.4448499371114156,0.251494553190321,0.3447209883729694,-0.45099499352739925,0.004783736692153151,0.14339717138861385,0.26628704140365667,-0.2629054066581673,-0.4503577922538329,0.08265760555530632,-0.22143991811936414,-0.23580415456704396,0.26322659840296936,-0.128788848929415,-0.4170688408115917,-0.014077203115443027,0.3395412388199053,-0.4850347285370541,0.4960429773944819,0.3040784936087565,0.16948992932608808,0.4077010559984423,-0.3886198372731159,-0.34784790849691916,0.29202365040433176,-0.18168304192783602,-0.0367643830189156,-0.21911865820667176,0.020101721514611315,-0.05111380252546571,0.4949648524115432,-0.24758597930070703,0.01660629531212976,0.016854088964895042,-0.4665684099945626,0.3566923305416577,-0.4092945154102625,-0.13259686509784563,0.45300974197215516,0.45410647894310074,0.45495676434830457,0.15086320701033495,0.2934602634074398,-0.0903957850447864,0.49890589904526295,0.3792028397429186,-0.4721034288623185,0.11137669317514398,0.3985340067747464,0.2508261947952485,-0.0645820819035493,0.35693729492652293,-0.30828956162814736,0.4993844733250866,-0.44435233382164685,-0.043080446873944966,-0.3432782593068676,-0.4240771326034558,0.32542579346206735,0.29953033373629523,0.1687090840705241,0.3555759037032399,-0.21620013268854754,0.07570042984091019,-0.39864335805086437,0.2804345656617052,0.19934148576641586,0.31810414669918974,-0.165606670036899,0.26578729184618066,0.2474034933969026,-0.39983517652623746,-0.4344252880801087,-0.03626036802717547,-0.03005067553304208,0.38095357564818966,0.4139286965201181,-0.3988083478311877,-0.3342289107811315],\"type\":\"scatter\",\"mode\":\"markers+lines\"},{\"x\":[0.0,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5,0.51,0.52,0.53,0.54,0.55,0.56,0.57,0.58,0.59,0.6,0.61,0.62,0.63,0.64,0.65,0.66,0.67,0.68,0.69,0.7,0.71,0.72,0.73,0.74,0.75,0.76,0.77,0.78,0.79,0.8,0.81,0.82,0.83,0.84,0.85,0.86,0.87,0.88,0.89,0.9,0.91,0.92,0.93,0.94,0.95,0.96,0.97,0.98,0.99,1.0],\"y\":[-5.118541279858697,-4.336928800939507,-3.9385408402956856,-5.13510660947426,-4.375182681191897,-4.266382896354829,-6.693443541975876,-6.068485174327739,-5.434508056276314,-6.348461280217517,-5.905133751421397,-5.213224971463147,-3.5734488291532553,-5.972821323626621,-6.668739355256433,-6.58990218086364,-6.1131559491866465,-5.426205049616756,-4.899390759059109,-5.095936685076762,-6.439631349138296,-3.7398545218636605,-3.250041192105066,-4.158814185998766,-5.418745598349464,-6.242926036175403,-5.973966460366805,-6.312228424139535,-6.520655870249062,-6.865773343104487,-3.3008248597542553,-6.277665827849311,-6.162921326750342,-3.135067725585891,-6.2572485618789875,-6.306895083670741,-5.353938555632384,-3.9295367886096355,-3.6233239677235125,-3.5643818702980914,-5.69180840299496,-5.313294977420196,-6.314156738567251,-3.623851578109708,-5.076276675460165,-5.012832082845858,-5.904876759183978,-6.596270545713277,-5.342939206155604,-6.535379955178368,-4.550847760425438,-5.588014465130651,-4.088429607922308,-3.736465125338768,-3.498656210626582,-5.337687693604439,-4.220374167524718,-6.635002232099147,-4.840706384807957,-4.413167412082267,-6.064534734908628,-3.063899010586587,-3.0755793590099243,-6.609516541588117,-3.3900904528581925,-5.717459621278913,-4.747963151238187,-5.509311838115293,-4.546430901778218,-6.179389954620724,-6.326344499974565,-5.702153345566668,-4.697112553635738,-4.307817127690438,-5.306232181842763,-4.6888424726672895,-6.116099946507546,-5.459651715947887,-3.434443858297593,-3.027927355248377,-3.9598318496065086,-3.9336284183578507,-6.164724361210634,-5.1866572534102815,-4.988434421931455,-3.4106670454991024,-5.267104798446782,-4.454298342677626,-5.513140188559842,-6.349988769692197,-4.176749108266341,-4.06241885927677,-5.928197893742187,-4.164944572840207,-5.685906073404755,-4.741524561494865,-5.621053943182366,-3.7275906014333917,-4.912460964591176,-4.722591380631442,-6.836170464036709],\"type\":\"scatter\",\"mode\":\"lines\"}],\n",
177
- " {\"xaxis\":{\"title\":\"x title\"},\"yaxis\":{\"title\":\"y title\"}},\n",
178
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
179
- ")\n",
180
- "\n",
181
- "window.addEventListener('resize', function() {\n",
182
- " Plotly.Plots.resize(document.getElementById('367ce7b1-69c8-4818-b2df-d15de5d19496'))\n",
183
- "})\n",
184
- " }) \n",
185
- "</script>"
186
- ],
187
- "text/plain": [
188
- "#<Plotly::Offline::HTML:0x007fdb8a025bf8 @id=\"367ce7b1-69c8-4818-b2df-d15de5d19496\", @data=[{:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[5.643574849105169, 4.961306066758519, 4.060934803889124, 3.414571515778032, 3.197411503903012, 3.2278637301592594, 4.872105605880176, 3.186894287301045, 6.410507190686895, 3.654375394859363, 6.144401812948679, 5.192899463415073, 5.8904630069303625, 4.049320930799653, 4.864790426688506, 4.816183710450119, 6.099187602311419, 3.9171455780212807, 4.866614613413191, 6.697259779947566, 3.694022532442527, 6.353507144539263, 4.904665442566774, 3.5897970270002344, 4.45139368897716, 3.923280428362602, 5.281395053251372, 4.8419034933281075, 4.203666147182073, 4.746377891662435, 4.361637820104374, 5.627462789773117, 5.351768666729981, 3.094692385328164, 6.839030054843362, 3.278166743991193, 3.830059270315399, 6.2024506808018245, 6.214265570110114, 4.202385347823167, 3.8997675180587303, 3.5805583787387603, 3.7950796359559567, 3.171619362136638, 5.275605617318684, 6.635818464397435, 5.4106155598873045, 5.076774881525382, 3.0837731858523707, 3.708524967452129, 4.438729561323523, 5.067911535349737, 4.091430591263282, 3.6341389770411716, 5.188335596317376, 4.236649806919521, 4.71829089522835, 4.932248853636338, 5.126123634687506, 3.1039398214544827, 6.930884750814518, 4.91388661568968, 5.379882791817321, 6.176476695475962, 5.990598138280438, 6.291616808752844, 5.201026929785126, 4.977227740756096, 3.198345596621278, 4.50300724674422, 3.029246325995899, 4.014484155725455, 3.3953501769715344, 6.1901035285059995, 4.704259693763614, 6.137490821869501, 4.902373381687166, 4.992645940018968, 6.268387227733969, 4.634123687345734, 4.681321142919827, 6.802345377946052, 3.3732407151503883, 3.99658618737928, 3.1025732739847025, 6.002190089000578, 6.95813133077629, 4.0285761714101325, 4.902367512489361, 6.044006159970719, 5.62940680404261, 3.8853853027542424, 5.590250253235214, 4.374223013871178, 4.754674417824647, 4.606267039693784, 3.8201755584054613, 4.140672180845154, 3.6989351781619533, 5.7879841884565035, 5.228441158043866], :type=>\"scatter\", :mode=>\"markers\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[0.2918470322309492, 0.06784672036348016, -0.25527629967714394, 0.29401864561379876, -0.08568254608572456, 0.17712162743022564, 0.26627759005907503, 0.020384797819056444, 0.28502289639693523, 0.08007853199056048, -0.19734214257260274, 0.11817015271094344, -0.027903131339155562, 0.04553219635709904, 0.4055360939507664, -0.45509583087448746, -0.33102521139201024, 0.06941561309717514, 0.017814885421255422, 0.4793591894071675, 0.07162445344284951, 0.3344137369225737, 0.4448499371114156, 0.251494553190321, 0.3447209883729694, -0.45099499352739925, 0.004783736692153151, 0.14339717138861385, 0.26628704140365667, -0.2629054066581673, -0.4503577922538329, 0.08265760555530632, -0.22143991811936414, -0.23580415456704396, 0.26322659840296936, -0.128788848929415, -0.4170688408115917, -0.014077203115443027, 0.3395412388199053, -0.4850347285370541, 0.4960429773944819, 0.3040784936087565, 0.16948992932608808, 0.4077010559984423, -0.3886198372731159, -0.34784790849691916, 0.29202365040433176, -0.18168304192783602, -0.0367643830189156, -0.21911865820667176, 0.020101721514611315, -0.05111380252546571, 0.4949648524115432, -0.24758597930070703, 0.01660629531212976, 0.016854088964895042, -0.4665684099945626, 0.3566923305416577, -0.4092945154102625, -0.13259686509784563, 0.45300974197215516, 0.45410647894310074, 0.45495676434830457, 0.15086320701033495, 0.2934602634074398, -0.0903957850447864, 0.49890589904526295, 0.3792028397429186, -0.4721034288623185, 0.11137669317514398, 0.3985340067747464, 0.2508261947952485, -0.0645820819035493, 0.35693729492652293, -0.30828956162814736, 0.4993844733250866, -0.44435233382164685, -0.043080446873944966, -0.3432782593068676, -0.4240771326034558, 0.32542579346206735, 0.29953033373629523, 0.1687090840705241, 0.3555759037032399, -0.21620013268854754, 0.07570042984091019, -0.39864335805086437, 0.2804345656617052, 0.19934148576641586, 0.31810414669918974, -0.165606670036899, 0.26578729184618066, 0.2474034933969026, -0.39983517652623746, -0.4344252880801087, -0.03626036802717547, -0.03005067553304208, 0.38095357564818966, 0.4139286965201181, -0.3988083478311877, -0.3342289107811315], :type=>\"scatter\", :mode=>\"markers+lines\"}, {:x=>[0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.7, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.8, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.9, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], :y=>[-5.118541279858697, -4.336928800939507, -3.9385408402956856, -5.13510660947426, -4.375182681191897, -4.266382896354829, -6.693443541975876, -6.068485174327739, -5.434508056276314, -6.348461280217517, -5.905133751421397, -5.213224971463147, -3.5734488291532553, -5.972821323626621, -6.668739355256433, -6.58990218086364, -6.1131559491866465, -5.426205049616756, -4.899390759059109, -5.095936685076762, -6.439631349138296, -3.7398545218636605, -3.250041192105066, -4.158814185998766, -5.418745598349464, -6.242926036175403, -5.973966460366805, -6.312228424139535, -6.520655870249062, -6.865773343104487, -3.3008248597542553, -6.277665827849311, -6.162921326750342, -3.135067725585891, -6.2572485618789875, -6.306895083670741, -5.353938555632384, -3.9295367886096355, -3.6233239677235125, -3.5643818702980914, -5.69180840299496, -5.313294977420196, -6.314156738567251, -3.623851578109708, -5.076276675460165, -5.012832082845858, -5.904876759183978, -6.596270545713277, -5.342939206155604, -6.535379955178368, -4.550847760425438, -5.588014465130651, -4.088429607922308, -3.736465125338768, -3.498656210626582, -5.337687693604439, -4.220374167524718, -6.635002232099147, -4.840706384807957, -4.413167412082267, -6.064534734908628, -3.063899010586587, -3.0755793590099243, -6.609516541588117, -3.3900904528581925, -5.717459621278913, -4.747963151238187, -5.509311838115293, -4.546430901778218, -6.179389954620724, -6.326344499974565, -5.702153345566668, -4.697112553635738, -4.307817127690438, -5.306232181842763, -4.6888424726672895, -6.116099946507546, -5.459651715947887, -3.434443858297593, -3.027927355248377, -3.9598318496065086, -3.9336284183578507, -6.164724361210634, -5.1866572534102815, -4.988434421931455, -3.4106670454991024, -5.267104798446782, -4.454298342677626, -5.513140188559842, -6.349988769692197, -4.176749108266341, -4.06241885927677, -5.928197893742187, -4.164944572840207, -5.685906073404755, -4.741524561494865, -5.621053943182366, -3.7275906014333917, -4.912460964591176, -4.722591380631442, -6.836170464036709], :type=>\"scatter\", :mode=>\"lines\"}], @layout={:xaxis=>{:title=>\"x title\"}, :yaxis=>{:title=>\"y title\"}}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
189
- ]
190
- },
191
- "metadata": {},
192
- "output_type": "display_data"
193
- }
194
- ],
195
- "source": [
196
- "plot.layout.xaxis = { title: 'x title' }\n",
197
- "plot.layout.yaxis = { title: 'y title' }\n",
198
- "\n",
199
- "plot.show"
200
- ]
201
- },
202
- {
203
- "cell_type": "code",
204
- "execution_count": null,
205
- "metadata": {
206
- "collapsed": true
207
- },
208
- "outputs": [],
209
- "source": []
210
- }
211
- ],
212
- "metadata": {
213
- "kernelspec": {
214
- "display_name": "Ruby 2.3.1",
215
- "language": "ruby",
216
- "name": "ruby"
217
- },
218
- "language_info": {
219
- "file_extension": ".rb",
220
- "mimetype": "application/x-ruby",
221
- "name": "ruby",
222
- "version": "2.3.1"
223
- }
224
- },
225
- "nbformat": 4,
226
- "nbformat_minor": 1
227
- }