rbplotly 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/README.md +23 -10
- data/docs/images/line_chart.png +0 -0
- data/examples/Bar Charts.ipynb +254 -0
- data/examples/Basic Usage.ipynb +227 -0
- data/examples/{basic_histogram.ipynb → Histograms.ipynb} +3 -2
- data/examples/Line charts.ipynb +88 -0
- data/examples/Pie Charts.ipynb +151 -0
- data/examples/Scatter Plots.ipynb +224 -0
- data/examples/heatmaps.ipynb +66 -5
- data/lib/plotly/axis.rb +4 -1
- data/lib/plotly/client.rb +13 -8
- data/lib/plotly/data.rb +13 -2
- data/lib/plotly/layout.rb +1 -1
- data/lib/plotly/line.rb +17 -0
- data/lib/plotly/marker.rb +23 -0
- data/lib/plotly/offline/exportable.rb +5 -0
- data/lib/plotly/plot.rb +0 -12
- data/lib/plotly/version.rb +1 -1
- data/rbplotly.gemspec +11 -7
- metadata +41 -24
- data/examples/basic_bar_chart.ipynb +0 -82
- data/examples/basic_pie_chart.ipynb +0 -84
- data/examples/grouped_bar_chart.ipynb +0 -89
- data/examples/line_and_scatter_plots.ipynb +0 -227
- data/examples/stacked_bar_chart.ipynb +0 -89
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5824c809b3bf7260b81eacf6b77ab986ab93f5e
|
4
|
+
data.tar.gz: 7199d7e10c9fa43b2cf61f601e68db6b1949e3c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37858b56eff737d8622fa3d8c4304370cf16805717df885cc197dfcf472e78d3f47a76d41a9ef55a9410a5f17751494c877d4f156a40edc4cb83c740114b34a
|
7
|
+
data.tar.gz: e7e11ff2ae577e8eb5a91831915196067faa028d54a0275704f75b4c37bdb294ae33639093ce67bb1a345079615600c23402aa291d59667e582aa35f8e8d4d01
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/rbplotly.svg)](https://badge.fury.io/rb/rbplotly)
|
2
|
-
[![Dependency Status](https://gemnasium.com/badges/github.com/
|
3
|
-
[![Build Status](https://travis-ci.org/
|
4
|
-
[![
|
2
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/ash1day/rbplotly.svg)](https://gemnasium.com/github.com/ash1day/rbplotly)
|
3
|
+
[![Build Status](https://travis-ci.org/ash1day/rbplotly.svg?branch=master)](https://travis-ci.org/ash1day/rbplotly)
|
4
|
+
[![Test Coverage](https://codeclimate.com/github/ash1day/rbplotly/badges/coverage.svg)](https://codeclimate.com/github/ash1day/rbplotly/coverage)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/ash1day/rbplotly/badges/gpa.svg)](https://codeclimate.com/github/ash1day/rbplotly)
|
5
6
|
|
6
7
|
# Rbplotly
|
7
8
|
|
8
|
-
|
9
|
+
Rbplotly, a Ruby visualization library, allows you to create interactive plots.
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
@@ -30,19 +31,19 @@ require 'rbplotly'
|
|
30
31
|
|
31
32
|
x = [0, 1, 2, 3, 4]
|
32
33
|
trace0 = { x: x, y: [0, 2, 1, 4, 3], type: :scatter, mode: :lines }
|
33
|
-
trace1 = { x: x, y: [4, 1, 3, 0, 2], type: :scatter, mode: 'markers+lines' }
|
34
|
-
data = [trace0, trace1] # data must be
|
34
|
+
trace1 = { x: x, y: [4, 1, 3, 0, 2], type: :scatter, mode: :'markers+lines' }
|
35
|
+
data = [trace0, trace1] # data must be an array
|
35
36
|
|
36
37
|
layout = { width: 500, height: 500 }
|
37
38
|
|
38
39
|
plot = Plotly::Plot.new(data: data, layout: layout)
|
39
40
|
|
40
|
-
plot.layout.height = 300 # You can
|
41
|
+
plot.layout.height = 300 # You can assign plot's attributes.
|
41
42
|
|
42
43
|
plot.generate_html(path: './line_chart.html')
|
43
44
|
```
|
44
45
|
|
45
|
-
|
46
|
+
<img src="./docs/images/line_chart.png" width="400">
|
46
47
|
|
47
48
|
Use `#download_image` if you want to get an image by using Plot.ly API. You can get your API KEY [here](https://plot.ly/settings/api).
|
48
49
|
|
@@ -59,11 +60,23 @@ plot.show
|
|
59
60
|
|
60
61
|
## Examples
|
61
62
|
|
62
|
-
|
63
|
+
- [Basic Usage](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Basic%20Usage.ipynb)
|
64
|
+
- [Bar Charts](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Bar%20%20Charts.ipynb)
|
65
|
+
- [Scatter Plots](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Scatter%20Plots.ipynb)
|
66
|
+
- [Line Charts](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Line%20charts.ipynb)
|
67
|
+
- [Pie Charts](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Pie%20Charts.ipynb)
|
68
|
+
- [Histograms](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/Histograms.ipynb)
|
69
|
+
- [Heatmaps](https://nbviewer.jupyter.org/github/ash1day/rbplotly/blob/master/examples/heatmaps.ipynb)
|
70
|
+
|
71
|
+
Visit [here](https://nbviewer.jupyter.org/github/ash1day/rbplotly/tree/master/examples/) to see more examples.
|
63
72
|
|
64
73
|
## Contributing
|
65
74
|
|
66
|
-
|
75
|
+
1. Fork it
|
76
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
77
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
78
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
79
|
+
5. Create new Pull Request
|
67
80
|
|
68
81
|
## Thanks
|
69
82
|
|
data/docs/images/line_chart.png
CHANGED
Binary file
|
@@ -0,0 +1,254 @@
|
|
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=\"15364e44-e887-419b-baf4-95d87b7f3345\" style=\"height: 100%; width: 100%;\"></div>\n",
|
20
|
+
"\n",
|
21
|
+
"<script>\n",
|
22
|
+
" require(['plotly'], function(Plotly) { \n",
|
23
|
+
"Plotly.newPlot(\n",
|
24
|
+
" '15364e44-e887-419b-baf4-95d87b7f3345',\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('15364e44-e887-419b-baf4-95d87b7f3345'))\n",
|
32
|
+
"})\n",
|
33
|
+
" }) \n",
|
34
|
+
"</script>"
|
35
|
+
],
|
36
|
+
"text/plain": [
|
37
|
+
"#<Plotly::Offline::HTML:0x007f99a3875f20 @id=\"15364e44-e887-419b-baf4-95d87b7f3345\", @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
|
+
"# Basic Bar Chart\n",
|
46
|
+
"require 'rbplotly'\n",
|
47
|
+
"\n",
|
48
|
+
"trace = { \n",
|
49
|
+
" x: %w(giraffes orangutans monkeys),\n",
|
50
|
+
" y: [20, 14, 23],\n",
|
51
|
+
" type: :bar\n",
|
52
|
+
"}\n",
|
53
|
+
"\n",
|
54
|
+
"plot = Plotly::Plot.new(data: [trace])\n",
|
55
|
+
"plot.show"
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"cell_type": "code",
|
60
|
+
"execution_count": 2,
|
61
|
+
"metadata": {
|
62
|
+
"collapsed": false
|
63
|
+
},
|
64
|
+
"outputs": [
|
65
|
+
{
|
66
|
+
"data": {
|
67
|
+
"text/html": [
|
68
|
+
"\n",
|
69
|
+
" <script>\n",
|
70
|
+
" requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
|
71
|
+
" </script>\n",
|
72
|
+
"\n",
|
73
|
+
"\n",
|
74
|
+
"<div id=\"c4af18d6-ca92-4bd0-8e5a-1fe6b3bcc084\" style=\"height: 100%; width: 100%;\"></div>\n",
|
75
|
+
"\n",
|
76
|
+
"<script>\n",
|
77
|
+
" require(['plotly'], function(Plotly) { \n",
|
78
|
+
"Plotly.newPlot(\n",
|
79
|
+
" 'c4af18d6-ca92-4bd0-8e5a-1fe6b3bcc084',\n",
|
80
|
+
" [{\"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",
|
81
|
+
" {},\n",
|
82
|
+
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
83
|
+
")\n",
|
84
|
+
"\n",
|
85
|
+
"window.addEventListener('resize', function() {\n",
|
86
|
+
" Plotly.Plots.resize(document.getElementById('c4af18d6-ca92-4bd0-8e5a-1fe6b3bcc084'))\n",
|
87
|
+
"})\n",
|
88
|
+
" }) \n",
|
89
|
+
"</script>"
|
90
|
+
],
|
91
|
+
"text/plain": [
|
92
|
+
"#<Plotly::Offline::HTML:0x007f99a301e458 @id=\"c4af18d6-ca92-4bd0-8e5a-1fe6b3bcc084\", @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>"
|
93
|
+
]
|
94
|
+
},
|
95
|
+
"metadata": {},
|
96
|
+
"output_type": "display_data"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"source": [
|
100
|
+
"# Grouped Bar Chart\n",
|
101
|
+
"require 'rbplotly'\n",
|
102
|
+
"\n",
|
103
|
+
"trace1 = {\n",
|
104
|
+
" x: %w(giraffes orangutans monkeys),\n",
|
105
|
+
" y: [20, 14, 23],\n",
|
106
|
+
" type: :bar,\n",
|
107
|
+
" name: 'SF Zoo'\n",
|
108
|
+
"}\n",
|
109
|
+
"trace2 = {\n",
|
110
|
+
" x: %w(giraffes orangutans monkeys),\n",
|
111
|
+
" y: [12, 18, 29],\n",
|
112
|
+
" type: :bar,\n",
|
113
|
+
" name: 'LA Zoo'\n",
|
114
|
+
"}\n",
|
115
|
+
"\n",
|
116
|
+
"plot = Plotly::Plot.new(data: [trace1, trace2])\n",
|
117
|
+
"plot.show"
|
118
|
+
]
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"cell_type": "code",
|
122
|
+
"execution_count": 3,
|
123
|
+
"metadata": {
|
124
|
+
"collapsed": false
|
125
|
+
},
|
126
|
+
"outputs": [
|
127
|
+
{
|
128
|
+
"data": {
|
129
|
+
"text/html": [
|
130
|
+
"\n",
|
131
|
+
" <script>\n",
|
132
|
+
" requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
|
133
|
+
" </script>\n",
|
134
|
+
"\n",
|
135
|
+
"\n",
|
136
|
+
"<div id=\"0fc03d39-3ef1-4d46-a2de-286272798cd1\" style=\"height: 100%; width: 100%;\"></div>\n",
|
137
|
+
"\n",
|
138
|
+
"<script>\n",
|
139
|
+
" require(['plotly'], function(Plotly) { \n",
|
140
|
+
"Plotly.newPlot(\n",
|
141
|
+
" '0fc03d39-3ef1-4d46-a2de-286272798cd1',\n",
|
142
|
+
" [{\"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",
|
143
|
+
" {\"barmode\":\"stack\"},\n",
|
144
|
+
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
145
|
+
")\n",
|
146
|
+
"\n",
|
147
|
+
"window.addEventListener('resize', function() {\n",
|
148
|
+
" Plotly.Plots.resize(document.getElementById('0fc03d39-3ef1-4d46-a2de-286272798cd1'))\n",
|
149
|
+
"})\n",
|
150
|
+
" }) \n",
|
151
|
+
"</script>"
|
152
|
+
],
|
153
|
+
"text/plain": [
|
154
|
+
"#<Plotly::Offline::HTML:0x007f99a32c9720 @id=\"0fc03d39-3ef1-4d46-a2de-286272798cd1\", @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={:barmode=>:stack}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
155
|
+
]
|
156
|
+
},
|
157
|
+
"metadata": {},
|
158
|
+
"output_type": "display_data"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"source": [
|
162
|
+
"# Grouped to Stacked\n",
|
163
|
+
"plot.layout.barmode = :stack\n",
|
164
|
+
"plot.show"
|
165
|
+
]
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"cell_type": "code",
|
169
|
+
"execution_count": 4,
|
170
|
+
"metadata": {
|
171
|
+
"collapsed": false
|
172
|
+
},
|
173
|
+
"outputs": [
|
174
|
+
{
|
175
|
+
"data": {
|
176
|
+
"text/html": [
|
177
|
+
"\n",
|
178
|
+
" <script>\n",
|
179
|
+
" requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
|
180
|
+
" </script>\n",
|
181
|
+
"\n",
|
182
|
+
"\n",
|
183
|
+
"<div id=\"83a0745a-84f0-4cd3-be13-af2a424a08f5\" style=\"height: 100%; width: 100%;\"></div>\n",
|
184
|
+
"\n",
|
185
|
+
"<script>\n",
|
186
|
+
" require(['plotly'], function(Plotly) { \n",
|
187
|
+
"Plotly.newPlot(\n",
|
188
|
+
" '83a0745a-84f0-4cd3-be13-af2a424a08f5',\n",
|
189
|
+
" [{\"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",
|
190
|
+
" {\"barmode\":\"stack\"},\n",
|
191
|
+
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
192
|
+
")\n",
|
193
|
+
"\n",
|
194
|
+
"window.addEventListener('resize', function() {\n",
|
195
|
+
" Plotly.Plots.resize(document.getElementById('83a0745a-84f0-4cd3-be13-af2a424a08f5'))\n",
|
196
|
+
"})\n",
|
197
|
+
" }) \n",
|
198
|
+
"</script>"
|
199
|
+
],
|
200
|
+
"text/plain": [
|
201
|
+
"#<Plotly::Offline::HTML:0x007f99a3e19cb0 @id=\"83a0745a-84f0-4cd3-be13-af2a424a08f5\", @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={:barmode=>:stack}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
202
|
+
]
|
203
|
+
},
|
204
|
+
"metadata": {},
|
205
|
+
"output_type": "display_data"
|
206
|
+
}
|
207
|
+
],
|
208
|
+
"source": [
|
209
|
+
"# Stacked Bar Chart\n",
|
210
|
+
"require 'rbplotly'\n",
|
211
|
+
"\n",
|
212
|
+
"trace1 = {\n",
|
213
|
+
" x: %w(giraffes orangutans monkeys),\n",
|
214
|
+
" y: [20, 14, 23],\n",
|
215
|
+
" type: :bar,\n",
|
216
|
+
" name: 'SF Zoo'\n",
|
217
|
+
"}\n",
|
218
|
+
"trace2 = {\n",
|
219
|
+
" x: %w(giraffes orangutans monkeys),\n",
|
220
|
+
" y: [12, 18, 29],\n",
|
221
|
+
" type: :bar,\n",
|
222
|
+
" name: 'LA Zoo'\n",
|
223
|
+
"}\n",
|
224
|
+
"\n",
|
225
|
+
"plot = Plotly::Plot.new(data: [trace1, trace2], layout: { barmode: :stack } )\n",
|
226
|
+
"plot.show"
|
227
|
+
]
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"cell_type": "code",
|
231
|
+
"execution_count": null,
|
232
|
+
"metadata": {
|
233
|
+
"collapsed": true
|
234
|
+
},
|
235
|
+
"outputs": [],
|
236
|
+
"source": []
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"metadata": {
|
240
|
+
"kernelspec": {
|
241
|
+
"display_name": "Ruby 2.3.1",
|
242
|
+
"language": "ruby",
|
243
|
+
"name": "ruby"
|
244
|
+
},
|
245
|
+
"language_info": {
|
246
|
+
"file_extension": ".rb",
|
247
|
+
"mimetype": "application/x-ruby",
|
248
|
+
"name": "ruby",
|
249
|
+
"version": "2.3.1"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"nbformat": 4,
|
253
|
+
"nbformat_minor": 1
|
254
|
+
}
|
@@ -0,0 +1,227 @@
|
|
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=\"d834e8a3-484e-4ed3-858d-d36369ba2e72\" style=\"height: 100%; width: 100%;\"></div>\n",
|
20
|
+
"\n",
|
21
|
+
"<script>\n",
|
22
|
+
" require(['plotly'], function(Plotly) { \n",
|
23
|
+
"Plotly.newPlot(\n",
|
24
|
+
" 'd834e8a3-484e-4ed3-858d-d36369ba2e72',\n",
|
25
|
+
" [{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[6.77311715080506,4.862765964855296,4.13142835150361,4.472879140134292,6.59712986410501,4.581611643903291,3.732699233243934,3.3187335628025205,3.514708853058782,4.628537440947461,3.0572774512304406,5.310455588442985,3.2195080414253963,5.508880810199349,4.079165256692786,5.144490489745197,5.087503837699314,6.662864395553022,5.483400490383898,6.2328950486666255,6.322765720406402,5.526923555372802,4.16061793970762,6.088249600149483,3.5018686225984106,4.946459566075038,6.262236327371372,3.34114474449722,3.8219300015718876,6.315086432207746,4.4222109816989015,3.293453780418781,3.4266982295548094,6.795912383470517,3.806362754241208,6.525504377480084,3.711796659136092,5.466409909504149,6.907469414115759,3.9719619934968544,3.6170069436245633,6.677747361952273,5.0215441055200625,5.449361223852634,5.205348702752944,4.8313217488121065,4.577881215875594,5.39857266789679,5.650277691412304,4.207490301347633,5.384928342509909,5.4228356432784395,3.604462119954402,6.63007621597188,4.944803950358495,3.1187056044625483,4.6900366441183845,4.8037917898775735,3.2810453262061126,5.152617488407588,4.9613246386880485,6.589949076774452,4.272857036948782,4.376334785729922,6.164340938513066,5.816620958760915,4.207286847990619,5.9027685322685635,6.012038460114505,3.0298961869363588,5.944855980400082,4.277758706768546,6.170483345532586,3.2845989481724693,3.9965460445434937,6.79088944285402,6.305277279551269,6.990476823897151,4.949469499114802,6.577883393953493,6.161702137067484,5.285744641961875,5.49711766662192,5.177694032263164,4.251220447376818,3.113140026042313,5.783385159954685,3.238061177738049,4.120580345684331,6.931017288113543,6.011796291756263,6.9517494903724755,4.7292782340504775,5.647087277451479,3.887764966738919,4.950517367118577,6.308283654337372,6.180046956438597,3.0513566525381157,3.768961668864381],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-0.6966618502264348,-1.6264124270203122,-0.8003663421080791,0.7755178680407844,1.3467177364291456,-1.783943874368401,0.23890250005347502,-1.8222131835331687,1.8155819535547595,1.9190772353715304,0.11739314102449772,1.9647914327561606,1.1946139106268245,-0.2899067354420177,1.6319732776260274,-0.630579760168311,-1.858468921293241,-0.5513809641610381,1.2059524769750953,1.4194866223153233,0.16547876308972453,-0.8907524296608109,-0.5463432419351961,1.6638983056628973,1.5241095837738032,-0.6386557277385791,1.720373855342178,-1.9293557094181497,1.4171262559835527,-0.20547132798780954,-1.142641855633706,0.5086465199346946,0.5373860143490106,-1.8579270451575938,-1.373349204764339,1.2241369637819175,-1.5433546221061696,1.5047052296200478,0.5365390684974742,0.6962876588613307,-0.33630799682555823,1.3593610402999468,-0.19130062791131808,-0.31173382695266616,-0.7299210787559862,1.1958213265302677,-0.21287210052657368,-1.241065976994069,-1.7267628879597945,0.8348012859189913,1.9010315586695028,0.6217012909331925,1.7342338182040642,-1.6065587343158727,0.7270787222946096,-0.7205958079365673,1.8660968507222297,-0.5074274645669057,1.017315346917123,0.012224662765817573,0.4149141121801989,0.8251787072142021,1.1028031474881588,-1.8781054149094993,0.7606117670160208,-1.6048313622764239,1.1139357802214835,1.3272211968346679,-1.1236777882692803,0.7652360059607837,-0.24951048901325734,1.2357371796202732,-0.49649906688278955,0.27251550261956536,-0.266670948671726,-1.5494746144889047,1.7752715884446366,0.020400097917685045,0.5246739671819829,-0.9765259480050186,1.9979359592809143,1.393428862636667,-0.936140697588054,1.2534656965029236,-0.19742269197114037,-1.6879776386804575,0.6674863642398075,0.12371023164690209,-0.15903201739414952,-0.24703278718741473,-1.1127290324686898,0.6482963535940995,-1.4486281457850603,0.7003438375731235,0.8990232674550267,-0.34148975589598773,0.9006708904535641,0.474541087084412,1.2727364042683016,-1.8597570490686843],\"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('d834e8a3-484e-4ed3-858d-d36369ba2e72'))\n",
|
32
|
+
"})\n",
|
33
|
+
" }) \n",
|
34
|
+
"</script>"
|
35
|
+
],
|
36
|
+
"text/plain": [
|
37
|
+
"#<Plotly::Offline::HTML:0x007fcea3285018 @id=\"d834e8a3-484e-4ed3-858d-d36369ba2e72\", @data=[{:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[6.77311715080506, 4.862765964855296, 4.13142835150361, 4.472879140134292, 6.59712986410501, 4.581611643903291, 3.732699233243934, 3.3187335628025205, 3.514708853058782, 4.628537440947461, 3.0572774512304406, 5.310455588442985, 3.2195080414253963, 5.508880810199349, 4.079165256692786, 5.144490489745197, 5.087503837699314, 6.662864395553022, 5.483400490383898, 6.2328950486666255, 6.322765720406402, 5.526923555372802, 4.16061793970762, 6.088249600149483, 3.5018686225984106, 4.946459566075038, 6.262236327371372, 3.34114474449722, 3.8219300015718876, 6.315086432207746, 4.4222109816989015, 3.293453780418781, 3.4266982295548094, 6.795912383470517, 3.806362754241208, 6.525504377480084, 3.711796659136092, 5.466409909504149, 6.907469414115759, 3.9719619934968544, 3.6170069436245633, 6.677747361952273, 5.0215441055200625, 5.449361223852634, 5.205348702752944, 4.8313217488121065, 4.577881215875594, 5.39857266789679, 5.650277691412304, 4.207490301347633, 5.384928342509909, 5.4228356432784395, 3.604462119954402, 6.63007621597188, 4.944803950358495, 3.1187056044625483, 4.6900366441183845, 4.8037917898775735, 3.2810453262061126, 5.152617488407588, 4.9613246386880485, 6.589949076774452, 4.272857036948782, 4.376334785729922, 6.164340938513066, 5.816620958760915, 4.207286847990619, 5.9027685322685635, 6.012038460114505, 3.0298961869363588, 5.944855980400082, 4.277758706768546, 6.170483345532586, 3.2845989481724693, 3.9965460445434937, 6.79088944285402, 6.305277279551269, 6.990476823897151, 4.949469499114802, 6.577883393953493, 6.161702137067484, 5.285744641961875, 5.49711766662192, 5.177694032263164, 4.251220447376818, 3.113140026042313, 5.783385159954685, 3.238061177738049, 4.120580345684331, 6.931017288113543, 6.011796291756263, 6.9517494903724755, 4.7292782340504775, 5.647087277451479, 3.887764966738919, 4.950517367118577, 6.308283654337372, 6.180046956438597, 3.0513566525381157, 3.768961668864381], :type=>:scatter, :mode=>:markers}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-0.6966618502264348, -1.6264124270203122, -0.8003663421080791, 0.7755178680407844, 1.3467177364291456, -1.783943874368401, 0.23890250005347502, -1.8222131835331687, 1.8155819535547595, 1.9190772353715304, 0.11739314102449772, 1.9647914327561606, 1.1946139106268245, -0.2899067354420177, 1.6319732776260274, -0.630579760168311, -1.858468921293241, -0.5513809641610381, 1.2059524769750953, 1.4194866223153233, 0.16547876308972453, -0.8907524296608109, -0.5463432419351961, 1.6638983056628973, 1.5241095837738032, -0.6386557277385791, 1.720373855342178, -1.9293557094181497, 1.4171262559835527, -0.20547132798780954, -1.142641855633706, 0.5086465199346946, 0.5373860143490106, -1.8579270451575938, -1.373349204764339, 1.2241369637819175, -1.5433546221061696, 1.5047052296200478, 0.5365390684974742, 0.6962876588613307, -0.33630799682555823, 1.3593610402999468, -0.19130062791131808, -0.31173382695266616, -0.7299210787559862, 1.1958213265302677, -0.21287210052657368, -1.241065976994069, -1.7267628879597945, 0.8348012859189913, 1.9010315586695028, 0.6217012909331925, 1.7342338182040642, -1.6065587343158727, 0.7270787222946096, -0.7205958079365673, 1.8660968507222297, -0.5074274645669057, 1.017315346917123, 0.012224662765817573, 0.4149141121801989, 0.8251787072142021, 1.1028031474881588, -1.8781054149094993, 0.7606117670160208, -1.6048313622764239, 1.1139357802214835, 1.3272211968346679, -1.1236777882692803, 0.7652360059607837, -0.24951048901325734, 1.2357371796202732, -0.49649906688278955, 0.27251550261956536, -0.266670948671726, -1.5494746144889047, 1.7752715884446366, 0.020400097917685045, 0.5246739671819829, -0.9765259480050186, 1.9979359592809143, 1.393428862636667, -0.936140697588054, 1.2534656965029236, -0.19742269197114037, -1.6879776386804575, 0.6674863642398075, 0.12371023164690209, -0.15903201739414952, -0.24703278718741473, -1.1127290324686898, 0.6482963535940995, -1.4486281457850603, 0.7003438375731235, 0.8990232674550267, -0.34148975589598773, 0.9006708904535641, 0.474541087084412, 1.2727364042683016, -1.8597570490686843], :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 = n.times.map { |i| i.to_f / (n - 1) }\n",
|
50
|
+
"y0 = n.times.map { rand(-2.0..2.0) + 5 }\n",
|
51
|
+
"y1 = n.times.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=\"341a3c70-a5b5-418a-8610-7906c24e482d\" style=\"height: 100%; width: 100%;\"></div>\n",
|
77
|
+
"\n",
|
78
|
+
"<script>\n",
|
79
|
+
" require(['plotly'], function(Plotly) { \n",
|
80
|
+
"Plotly.newPlot(\n",
|
81
|
+
" '341a3c70-a5b5-418a-8610-7906c24e482d',\n",
|
82
|
+
" [{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[6.77311715080506,4.862765964855296,4.13142835150361,4.472879140134292,6.59712986410501,4.581611643903291,3.732699233243934,3.3187335628025205,3.514708853058782,4.628537440947461,3.0572774512304406,5.310455588442985,3.2195080414253963,5.508880810199349,4.079165256692786,5.144490489745197,5.087503837699314,6.662864395553022,5.483400490383898,6.2328950486666255,6.322765720406402,5.526923555372802,4.16061793970762,6.088249600149483,3.5018686225984106,4.946459566075038,6.262236327371372,3.34114474449722,3.8219300015718876,6.315086432207746,4.4222109816989015,3.293453780418781,3.4266982295548094,6.795912383470517,3.806362754241208,6.525504377480084,3.711796659136092,5.466409909504149,6.907469414115759,3.9719619934968544,3.6170069436245633,6.677747361952273,5.0215441055200625,5.449361223852634,5.205348702752944,4.8313217488121065,4.577881215875594,5.39857266789679,5.650277691412304,4.207490301347633,5.384928342509909,5.4228356432784395,3.604462119954402,6.63007621597188,4.944803950358495,3.1187056044625483,4.6900366441183845,4.8037917898775735,3.2810453262061126,5.152617488407588,4.9613246386880485,6.589949076774452,4.272857036948782,4.376334785729922,6.164340938513066,5.816620958760915,4.207286847990619,5.9027685322685635,6.012038460114505,3.0298961869363588,5.944855980400082,4.277758706768546,6.170483345532586,3.2845989481724693,3.9965460445434937,6.79088944285402,6.305277279551269,6.990476823897151,4.949469499114802,6.577883393953493,6.161702137067484,5.285744641961875,5.49711766662192,5.177694032263164,4.251220447376818,3.113140026042313,5.783385159954685,3.238061177738049,4.120580345684331,6.931017288113543,6.011796291756263,6.9517494903724755,4.7292782340504775,5.647087277451479,3.887764966738919,4.950517367118577,6.308283654337372,6.180046956438597,3.0513566525381157,3.768961668864381],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-0.3232758959890951,0.4970899355553401,0.44580438294604785,0.22282666560072417,0.12703635909022337,0.3456844063472898,-0.33137320867313524,0.21374727733358878,0.09019084088863194,-0.07828103511131257,0.11818140562358637,0.4272277810810994,-0.03561356188099385,-0.3434670471909461,-0.15441368070673223,0.4389207489024166,-0.426092981190782,-0.05380118340131901,0.28559718846282,-0.14375100573294086,0.3805021888930167,-0.21313907659185227,0.3317363568334334,0.043720004132245416,0.3385507311363235,-0.3353926890263679,0.4548490493897521,-0.01912803436170163,0.11242276332062229,0.43577114881048107,-0.11751025750114097,-0.16136173282450217,0.2624780071814047,-0.45180056620937326,-0.16006360685277488,-0.16251140528885422,0.4903074614775397,0.12150233210233363,-0.14483220560150611,-0.30705614974414486,-0.2995249792105883,0.39615142135164494,0.2773298630939377,-0.33218218441388114,-0.1459411809357657,0.26788450414886245,0.39478091637643364,-0.1285213470719101,0.4388783001516544,-0.25053749948666426,0.2299278509161916,0.0031951945713151186,0.4950458782762306,0.2996194766785414,0.30357480618776755,0.12284737965102088,0.22672540838058264,-0.49441378767479127,0.13997949874714333,0.20297488100662697,-0.09180582878714005,0.48403708564866166,-0.3647509348411496,0.34962860591895784,-0.31627892268415014,-0.0803803306066112,-0.22892199408312386,0.37197501974988845,0.34157035563814586,0.4580645660977263,-0.17860377020291196,-0.3358840997156075,0.48618731667749526,-0.31731144800911437,0.293577228357466,0.28512440957105634,-0.0696911314205142,-0.21765739644286886,0.2272563357891796,-0.48669044359902114,-0.02978911562197728,-0.02411438111270403,0.3200812721047154,0.43591726876951487,0.24606053395619543,0.10820705760286786,0.10392345906011524,-0.13637797972818855,-0.39197245334844943,0.4735280906807313,0.14094063653786293,0.4660935792863511,0.10419400195156325,-0.27382310522488906,0.12707720874721307,-0.4903762719072222,0.4587878771719298,-0.08868757443663533,0.2604772137426018,-0.3223224415138706],\"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('341a3c70-a5b5-418a-8610-7906c24e482d'))\n",
|
89
|
+
"})\n",
|
90
|
+
" }) \n",
|
91
|
+
"</script>"
|
92
|
+
],
|
93
|
+
"text/plain": [
|
94
|
+
"#<Plotly::Offline::HTML:0x007fcea3de3ec8 @id=\"341a3c70-a5b5-418a-8610-7906c24e482d\", @data=[{:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[6.77311715080506, 4.862765964855296, 4.13142835150361, 4.472879140134292, 6.59712986410501, 4.581611643903291, 3.732699233243934, 3.3187335628025205, 3.514708853058782, 4.628537440947461, 3.0572774512304406, 5.310455588442985, 3.2195080414253963, 5.508880810199349, 4.079165256692786, 5.144490489745197, 5.087503837699314, 6.662864395553022, 5.483400490383898, 6.2328950486666255, 6.322765720406402, 5.526923555372802, 4.16061793970762, 6.088249600149483, 3.5018686225984106, 4.946459566075038, 6.262236327371372, 3.34114474449722, 3.8219300015718876, 6.315086432207746, 4.4222109816989015, 3.293453780418781, 3.4266982295548094, 6.795912383470517, 3.806362754241208, 6.525504377480084, 3.711796659136092, 5.466409909504149, 6.907469414115759, 3.9719619934968544, 3.6170069436245633, 6.677747361952273, 5.0215441055200625, 5.449361223852634, 5.205348702752944, 4.8313217488121065, 4.577881215875594, 5.39857266789679, 5.650277691412304, 4.207490301347633, 5.384928342509909, 5.4228356432784395, 3.604462119954402, 6.63007621597188, 4.944803950358495, 3.1187056044625483, 4.6900366441183845, 4.8037917898775735, 3.2810453262061126, 5.152617488407588, 4.9613246386880485, 6.589949076774452, 4.272857036948782, 4.376334785729922, 6.164340938513066, 5.816620958760915, 4.207286847990619, 5.9027685322685635, 6.012038460114505, 3.0298961869363588, 5.944855980400082, 4.277758706768546, 6.170483345532586, 3.2845989481724693, 3.9965460445434937, 6.79088944285402, 6.305277279551269, 6.990476823897151, 4.949469499114802, 6.577883393953493, 6.161702137067484, 5.285744641961875, 5.49711766662192, 5.177694032263164, 4.251220447376818, 3.113140026042313, 5.783385159954685, 3.238061177738049, 4.120580345684331, 6.931017288113543, 6.011796291756263, 6.9517494903724755, 4.7292782340504775, 5.647087277451479, 3.887764966738919, 4.950517367118577, 6.308283654337372, 6.180046956438597, 3.0513566525381157, 3.768961668864381], :type=>:scatter, :mode=>:markers}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-0.3232758959890951, 0.4970899355553401, 0.44580438294604785, 0.22282666560072417, 0.12703635909022337, 0.3456844063472898, -0.33137320867313524, 0.21374727733358878, 0.09019084088863194, -0.07828103511131257, 0.11818140562358637, 0.4272277810810994, -0.03561356188099385, -0.3434670471909461, -0.15441368070673223, 0.4389207489024166, -0.426092981190782, -0.05380118340131901, 0.28559718846282, -0.14375100573294086, 0.3805021888930167, -0.21313907659185227, 0.3317363568334334, 0.043720004132245416, 0.3385507311363235, -0.3353926890263679, 0.4548490493897521, -0.01912803436170163, 0.11242276332062229, 0.43577114881048107, -0.11751025750114097, -0.16136173282450217, 0.2624780071814047, -0.45180056620937326, -0.16006360685277488, -0.16251140528885422, 0.4903074614775397, 0.12150233210233363, -0.14483220560150611, -0.30705614974414486, -0.2995249792105883, 0.39615142135164494, 0.2773298630939377, -0.33218218441388114, -0.1459411809357657, 0.26788450414886245, 0.39478091637643364, -0.1285213470719101, 0.4388783001516544, -0.25053749948666426, 0.2299278509161916, 0.0031951945713151186, 0.4950458782762306, 0.2996194766785414, 0.30357480618776755, 0.12284737965102088, 0.22672540838058264, -0.49441378767479127, 0.13997949874714333, 0.20297488100662697, -0.09180582878714005, 0.48403708564866166, -0.3647509348411496, 0.34962860591895784, -0.31627892268415014, -0.0803803306066112, -0.22892199408312386, 0.37197501974988845, 0.34157035563814586, 0.4580645660977263, -0.17860377020291196, -0.3358840997156075, 0.48618731667749526, -0.31731144800911437, 0.293577228357466, 0.28512440957105634, -0.0696911314205142, -0.21765739644286886, 0.2272563357891796, -0.48669044359902114, -0.02978911562197728, -0.02411438111270403, 0.3200812721047154, 0.43591726876951487, 0.24606053395619543, 0.10820705760286786, 0.10392345906011524, -0.13637797972818855, -0.39197245334844943, 0.4735280906807313, 0.14094063653786293, 0.4660935792863511, 0.10419400195156325, -0.27382310522488906, 0.12707720874721307, -0.4903762719072222, 0.4587878771719298, -0.08868757443663533, 0.2604772137426018, -0.3223224415138706], :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 = n.times.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=\"78c9878d-2bae-4819-a873-dff81986818e\" style=\"height: 100%; width: 100%;\"></div>\n",
|
123
|
+
"\n",
|
124
|
+
"<script>\n",
|
125
|
+
" require(['plotly'], function(Plotly) { \n",
|
126
|
+
"Plotly.newPlot(\n",
|
127
|
+
" '78c9878d-2bae-4819-a873-dff81986818e',\n",
|
128
|
+
" [{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[6.77311715080506,4.862765964855296,4.13142835150361,4.472879140134292,6.59712986410501,4.581611643903291,3.732699233243934,3.3187335628025205,3.514708853058782,4.628537440947461,3.0572774512304406,5.310455588442985,3.2195080414253963,5.508880810199349,4.079165256692786,5.144490489745197,5.087503837699314,6.662864395553022,5.483400490383898,6.2328950486666255,6.322765720406402,5.526923555372802,4.16061793970762,6.088249600149483,3.5018686225984106,4.946459566075038,6.262236327371372,3.34114474449722,3.8219300015718876,6.315086432207746,4.4222109816989015,3.293453780418781,3.4266982295548094,6.795912383470517,3.806362754241208,6.525504377480084,3.711796659136092,5.466409909504149,6.907469414115759,3.9719619934968544,3.6170069436245633,6.677747361952273,5.0215441055200625,5.449361223852634,5.205348702752944,4.8313217488121065,4.577881215875594,5.39857266789679,5.650277691412304,4.207490301347633,5.384928342509909,5.4228356432784395,3.604462119954402,6.63007621597188,4.944803950358495,3.1187056044625483,4.6900366441183845,4.8037917898775735,3.2810453262061126,5.152617488407588,4.9613246386880485,6.589949076774452,4.272857036948782,4.376334785729922,6.164340938513066,5.816620958760915,4.207286847990619,5.9027685322685635,6.012038460114505,3.0298961869363588,5.944855980400082,4.277758706768546,6.170483345532586,3.2845989481724693,3.9965460445434937,6.79088944285402,6.305277279551269,6.990476823897151,4.949469499114802,6.577883393953493,6.161702137067484,5.285744641961875,5.49711766662192,5.177694032263164,4.251220447376818,3.113140026042313,5.783385159954685,3.238061177738049,4.120580345684331,6.931017288113543,6.011796291756263,6.9517494903724755,4.7292782340504775,5.647087277451479,3.887764966738919,4.950517367118577,6.308283654337372,6.180046956438597,3.0513566525381157,3.768961668864381],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-0.3232758959890951,0.4970899355553401,0.44580438294604785,0.22282666560072417,0.12703635909022337,0.3456844063472898,-0.33137320867313524,0.21374727733358878,0.09019084088863194,-0.07828103511131257,0.11818140562358637,0.4272277810810994,-0.03561356188099385,-0.3434670471909461,-0.15441368070673223,0.4389207489024166,-0.426092981190782,-0.05380118340131901,0.28559718846282,-0.14375100573294086,0.3805021888930167,-0.21313907659185227,0.3317363568334334,0.043720004132245416,0.3385507311363235,-0.3353926890263679,0.4548490493897521,-0.01912803436170163,0.11242276332062229,0.43577114881048107,-0.11751025750114097,-0.16136173282450217,0.2624780071814047,-0.45180056620937326,-0.16006360685277488,-0.16251140528885422,0.4903074614775397,0.12150233210233363,-0.14483220560150611,-0.30705614974414486,-0.2995249792105883,0.39615142135164494,0.2773298630939377,-0.33218218441388114,-0.1459411809357657,0.26788450414886245,0.39478091637643364,-0.1285213470719101,0.4388783001516544,-0.25053749948666426,0.2299278509161916,0.0031951945713151186,0.4950458782762306,0.2996194766785414,0.30357480618776755,0.12284737965102088,0.22672540838058264,-0.49441378767479127,0.13997949874714333,0.20297488100662697,-0.09180582878714005,0.48403708564866166,-0.3647509348411496,0.34962860591895784,-0.31627892268415014,-0.0803803306066112,-0.22892199408312386,0.37197501974988845,0.34157035563814586,0.4580645660977263,-0.17860377020291196,-0.3358840997156075,0.48618731667749526,-0.31731144800911437,0.293577228357466,0.28512440957105634,-0.0696911314205142,-0.21765739644286886,0.2272563357891796,-0.48669044359902114,-0.02978911562197728,-0.02411438111270403,0.3200812721047154,0.43591726876951487,0.24606053395619543,0.10820705760286786,0.10392345906011524,-0.13637797972818855,-0.39197245334844943,0.4735280906807313,0.14094063653786293,0.4660935792863511,0.10419400195156325,-0.27382310522488906,0.12707720874721307,-0.4903762719072222,0.4587878771719298,-0.08868757443663533,0.2604772137426018,-0.3223224415138706],\"type\":\"scatter\",\"mode\":\"markers+lines\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-6.6874262296932265,-6.829432052835984,-5.59047424597267,-5.976489276423312,-4.092367256965065,-5.39307510118236,-3.8068982200237405,-6.136107228509367,-6.8151973565730835,-5.565382391195958,-4.375895949455578,-3.760485858791113,-6.754688084466551,-4.824300563427634,-5.52595062102378,-6.3378335471294065,-3.0543125714811343,-4.278900099708506,-5.93067963794472,-5.205126522921306,-5.601768595846629,-6.026465236007853,-6.4067420272520685,-3.2391493065309773,-4.7845855803951896,-5.620443521674236,-6.206620299811739,-3.922902267631179,-5.222985143545303,-5.457385208084562,-5.987533200307928,-5.060010070944687,-5.397620122651418,-6.284712179274461,-6.735000931752831,-4.278629421069374,-4.504010851830566,-5.342444697768789,-5.394766221356312,-4.192741901590026,-3.0595709454141926,-6.237011775415116,-6.973987824318379,-4.913783865369675,-5.903520774897731,-4.59421995659088,-4.1225265289804796,-6.457966507538131,-4.316637957697737,-4.561861594291388,-4.854520669675028,-3.5039242191286855,-5.563932284038044,-5.302468610986621,-3.8052487115358793,-3.8238669206711977,-6.584415034037431,-3.7905660264284458,-6.723591254224798,-5.185983197329615,-5.080968383764003,-5.027094466810981,-4.549936169811947,-5.148343674515804,-4.196708837755386,-3.9297365794350414,-4.090058809327308,-5.336733025546682,-6.700419393945597,-3.475329954811489,-4.5526066273919685,-6.923105108682796,-6.889478899787659,-3.996657727916245,-6.9071135321281245,-6.416445251691865,-5.665207227760563,-3.1665468802822394,-5.830304890120358,-3.5972075432894592,-5.802575876111328,-4.100514049482162,-6.38197066692527,-6.702626553059812,-3.9790242842492933,-5.619991927686209,-4.926367217010969,-3.4943559861736206,-6.369451249168813,-6.619621430213733,-3.6419335595990563,-6.544142701924831,-5.0609703774673305,-4.915198629335233,-4.878808909841706,-6.441541961605298,-5.9779498830067395,-6.064884480030446,-3.8194230353612935,-3.1135425526321128],\"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('78c9878d-2bae-4819-a873-dff81986818e'))\n",
|
135
|
+
"})\n",
|
136
|
+
" }) \n",
|
137
|
+
"</script>"
|
138
|
+
],
|
139
|
+
"text/plain": [
|
140
|
+
"#<Plotly::Offline::HTML:0x007fcea3d20a40 @id=\"78c9878d-2bae-4819-a873-dff81986818e\", @data=[{:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[6.77311715080506, 4.862765964855296, 4.13142835150361, 4.472879140134292, 6.59712986410501, 4.581611643903291, 3.732699233243934, 3.3187335628025205, 3.514708853058782, 4.628537440947461, 3.0572774512304406, 5.310455588442985, 3.2195080414253963, 5.508880810199349, 4.079165256692786, 5.144490489745197, 5.087503837699314, 6.662864395553022, 5.483400490383898, 6.2328950486666255, 6.322765720406402, 5.526923555372802, 4.16061793970762, 6.088249600149483, 3.5018686225984106, 4.946459566075038, 6.262236327371372, 3.34114474449722, 3.8219300015718876, 6.315086432207746, 4.4222109816989015, 3.293453780418781, 3.4266982295548094, 6.795912383470517, 3.806362754241208, 6.525504377480084, 3.711796659136092, 5.466409909504149, 6.907469414115759, 3.9719619934968544, 3.6170069436245633, 6.677747361952273, 5.0215441055200625, 5.449361223852634, 5.205348702752944, 4.8313217488121065, 4.577881215875594, 5.39857266789679, 5.650277691412304, 4.207490301347633, 5.384928342509909, 5.4228356432784395, 3.604462119954402, 6.63007621597188, 4.944803950358495, 3.1187056044625483, 4.6900366441183845, 4.8037917898775735, 3.2810453262061126, 5.152617488407588, 4.9613246386880485, 6.589949076774452, 4.272857036948782, 4.376334785729922, 6.164340938513066, 5.816620958760915, 4.207286847990619, 5.9027685322685635, 6.012038460114505, 3.0298961869363588, 5.944855980400082, 4.277758706768546, 6.170483345532586, 3.2845989481724693, 3.9965460445434937, 6.79088944285402, 6.305277279551269, 6.990476823897151, 4.949469499114802, 6.577883393953493, 6.161702137067484, 5.285744641961875, 5.49711766662192, 5.177694032263164, 4.251220447376818, 3.113140026042313, 5.783385159954685, 3.238061177738049, 4.120580345684331, 6.931017288113543, 6.011796291756263, 6.9517494903724755, 4.7292782340504775, 5.647087277451479, 3.887764966738919, 4.950517367118577, 6.308283654337372, 6.180046956438597, 3.0513566525381157, 3.768961668864381], :type=>:scatter, :mode=>:markers}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-0.3232758959890951, 0.4970899355553401, 0.44580438294604785, 0.22282666560072417, 0.12703635909022337, 0.3456844063472898, -0.33137320867313524, 0.21374727733358878, 0.09019084088863194, -0.07828103511131257, 0.11818140562358637, 0.4272277810810994, -0.03561356188099385, -0.3434670471909461, -0.15441368070673223, 0.4389207489024166, -0.426092981190782, -0.05380118340131901, 0.28559718846282, -0.14375100573294086, 0.3805021888930167, -0.21313907659185227, 0.3317363568334334, 0.043720004132245416, 0.3385507311363235, -0.3353926890263679, 0.4548490493897521, -0.01912803436170163, 0.11242276332062229, 0.43577114881048107, -0.11751025750114097, -0.16136173282450217, 0.2624780071814047, -0.45180056620937326, -0.16006360685277488, -0.16251140528885422, 0.4903074614775397, 0.12150233210233363, -0.14483220560150611, -0.30705614974414486, -0.2995249792105883, 0.39615142135164494, 0.2773298630939377, -0.33218218441388114, -0.1459411809357657, 0.26788450414886245, 0.39478091637643364, -0.1285213470719101, 0.4388783001516544, -0.25053749948666426, 0.2299278509161916, 0.0031951945713151186, 0.4950458782762306, 0.2996194766785414, 0.30357480618776755, 0.12284737965102088, 0.22672540838058264, -0.49441378767479127, 0.13997949874714333, 0.20297488100662697, -0.09180582878714005, 0.48403708564866166, -0.3647509348411496, 0.34962860591895784, -0.31627892268415014, -0.0803803306066112, -0.22892199408312386, 0.37197501974988845, 0.34157035563814586, 0.4580645660977263, -0.17860377020291196, -0.3358840997156075, 0.48618731667749526, -0.31731144800911437, 0.293577228357466, 0.28512440957105634, -0.0696911314205142, -0.21765739644286886, 0.2272563357891796, -0.48669044359902114, -0.02978911562197728, -0.02411438111270403, 0.3200812721047154, 0.43591726876951487, 0.24606053395619543, 0.10820705760286786, 0.10392345906011524, -0.13637797972818855, -0.39197245334844943, 0.4735280906807313, 0.14094063653786293, 0.4660935792863511, 0.10419400195156325, -0.27382310522488906, 0.12707720874721307, -0.4903762719072222, 0.4587878771719298, -0.08868757443663533, 0.2604772137426018, -0.3223224415138706], :type=>:scatter, :mode=>:\"markers+lines\"}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-6.6874262296932265, -6.829432052835984, -5.59047424597267, -5.976489276423312, -4.092367256965065, -5.39307510118236, -3.8068982200237405, -6.136107228509367, -6.8151973565730835, -5.565382391195958, -4.375895949455578, -3.760485858791113, -6.754688084466551, -4.824300563427634, -5.52595062102378, -6.3378335471294065, -3.0543125714811343, -4.278900099708506, -5.93067963794472, -5.205126522921306, -5.601768595846629, -6.026465236007853, -6.4067420272520685, -3.2391493065309773, -4.7845855803951896, -5.620443521674236, -6.206620299811739, -3.922902267631179, -5.222985143545303, -5.457385208084562, -5.987533200307928, -5.060010070944687, -5.397620122651418, -6.284712179274461, -6.735000931752831, -4.278629421069374, -4.504010851830566, -5.342444697768789, -5.394766221356312, -4.192741901590026, -3.0595709454141926, -6.237011775415116, -6.973987824318379, -4.913783865369675, -5.903520774897731, -4.59421995659088, -4.1225265289804796, -6.457966507538131, -4.316637957697737, -4.561861594291388, -4.854520669675028, -3.5039242191286855, -5.563932284038044, -5.302468610986621, -3.8052487115358793, -3.8238669206711977, -6.584415034037431, -3.7905660264284458, -6.723591254224798, -5.185983197329615, -5.080968383764003, -5.027094466810981, -4.549936169811947, -5.148343674515804, -4.196708837755386, -3.9297365794350414, -4.090058809327308, -5.336733025546682, -6.700419393945597, -3.475329954811489, -4.5526066273919685, -6.923105108682796, -6.889478899787659, -3.996657727916245, -6.9071135321281245, -6.416445251691865, -5.665207227760563, -3.1665468802822394, -5.830304890120358, -3.5972075432894592, -5.802575876111328, -4.100514049482162, -6.38197066692527, -6.702626553059812, -3.9790242842492933, -5.619991927686209, -4.926367217010969, -3.4943559861736206, -6.369451249168813, -6.619621430213733, -3.6419335595990563, -6.544142701924831, -5.0609703774673305, -4.915198629335233, -4.878808909841706, -6.441541961605298, -5.9779498830067395, -6.064884480030446, -3.8194230353612935, -3.1135425526321128], :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: n.times.map { rand(-2.0..2.0) - 5 }, type: :scatter, mode: :lines }\n",
|
149
|
+
"plot.data.push(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=\"7f706e61-4b95-4c1b-85a6-74201e0b296c\" style=\"height: 100%; width: 100%;\"></div>\n",
|
171
|
+
"\n",
|
172
|
+
"<script>\n",
|
173
|
+
" require(['plotly'], function(Plotly) { \n",
|
174
|
+
"Plotly.newPlot(\n",
|
175
|
+
" '7f706e61-4b95-4c1b-85a6-74201e0b296c',\n",
|
176
|
+
" [{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[6.77311715080506,4.862765964855296,4.13142835150361,4.472879140134292,6.59712986410501,4.581611643903291,3.732699233243934,3.3187335628025205,3.514708853058782,4.628537440947461,3.0572774512304406,5.310455588442985,3.2195080414253963,5.508880810199349,4.079165256692786,5.144490489745197,5.087503837699314,6.662864395553022,5.483400490383898,6.2328950486666255,6.322765720406402,5.526923555372802,4.16061793970762,6.088249600149483,3.5018686225984106,4.946459566075038,6.262236327371372,3.34114474449722,3.8219300015718876,6.315086432207746,4.4222109816989015,3.293453780418781,3.4266982295548094,6.795912383470517,3.806362754241208,6.525504377480084,3.711796659136092,5.466409909504149,6.907469414115759,3.9719619934968544,3.6170069436245633,6.677747361952273,5.0215441055200625,5.449361223852634,5.205348702752944,4.8313217488121065,4.577881215875594,5.39857266789679,5.650277691412304,4.207490301347633,5.384928342509909,5.4228356432784395,3.604462119954402,6.63007621597188,4.944803950358495,3.1187056044625483,4.6900366441183845,4.8037917898775735,3.2810453262061126,5.152617488407588,4.9613246386880485,6.589949076774452,4.272857036948782,4.376334785729922,6.164340938513066,5.816620958760915,4.207286847990619,5.9027685322685635,6.012038460114505,3.0298961869363588,5.944855980400082,4.277758706768546,6.170483345532586,3.2845989481724693,3.9965460445434937,6.79088944285402,6.305277279551269,6.990476823897151,4.949469499114802,6.577883393953493,6.161702137067484,5.285744641961875,5.49711766662192,5.177694032263164,4.251220447376818,3.113140026042313,5.783385159954685,3.238061177738049,4.120580345684331,6.931017288113543,6.011796291756263,6.9517494903724755,4.7292782340504775,5.647087277451479,3.887764966738919,4.950517367118577,6.308283654337372,6.180046956438597,3.0513566525381157,3.768961668864381],\"type\":\"scatter\",\"mode\":\"markers\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-0.3232758959890951,0.4970899355553401,0.44580438294604785,0.22282666560072417,0.12703635909022337,0.3456844063472898,-0.33137320867313524,0.21374727733358878,0.09019084088863194,-0.07828103511131257,0.11818140562358637,0.4272277810810994,-0.03561356188099385,-0.3434670471909461,-0.15441368070673223,0.4389207489024166,-0.426092981190782,-0.05380118340131901,0.28559718846282,-0.14375100573294086,0.3805021888930167,-0.21313907659185227,0.3317363568334334,0.043720004132245416,0.3385507311363235,-0.3353926890263679,0.4548490493897521,-0.01912803436170163,0.11242276332062229,0.43577114881048107,-0.11751025750114097,-0.16136173282450217,0.2624780071814047,-0.45180056620937326,-0.16006360685277488,-0.16251140528885422,0.4903074614775397,0.12150233210233363,-0.14483220560150611,-0.30705614974414486,-0.2995249792105883,0.39615142135164494,0.2773298630939377,-0.33218218441388114,-0.1459411809357657,0.26788450414886245,0.39478091637643364,-0.1285213470719101,0.4388783001516544,-0.25053749948666426,0.2299278509161916,0.0031951945713151186,0.4950458782762306,0.2996194766785414,0.30357480618776755,0.12284737965102088,0.22672540838058264,-0.49441378767479127,0.13997949874714333,0.20297488100662697,-0.09180582878714005,0.48403708564866166,-0.3647509348411496,0.34962860591895784,-0.31627892268415014,-0.0803803306066112,-0.22892199408312386,0.37197501974988845,0.34157035563814586,0.4580645660977263,-0.17860377020291196,-0.3358840997156075,0.48618731667749526,-0.31731144800911437,0.293577228357466,0.28512440957105634,-0.0696911314205142,-0.21765739644286886,0.2272563357891796,-0.48669044359902114,-0.02978911562197728,-0.02411438111270403,0.3200812721047154,0.43591726876951487,0.24606053395619543,0.10820705760286786,0.10392345906011524,-0.13637797972818855,-0.39197245334844943,0.4735280906807313,0.14094063653786293,0.4660935792863511,0.10419400195156325,-0.27382310522488906,0.12707720874721307,-0.4903762719072222,0.4587878771719298,-0.08868757443663533,0.2604772137426018,-0.3223224415138706],\"type\":\"scatter\",\"mode\":\"markers+lines\"},{\"x\":[0.0,0.010101010101010102,0.020202020202020204,0.030303030303030304,0.04040404040404041,0.050505050505050504,0.06060606060606061,0.0707070707070707,0.08080808080808081,0.09090909090909091,0.10101010101010101,0.1111111111111111,0.12121212121212122,0.13131313131313133,0.1414141414141414,0.15151515151515152,0.16161616161616163,0.1717171717171717,0.18181818181818182,0.1919191919191919,0.20202020202020202,0.21212121212121213,0.2222222222222222,0.23232323232323232,0.24242424242424243,0.25252525252525254,0.26262626262626265,0.2727272727272727,0.2828282828282828,0.29292929292929293,0.30303030303030304,0.31313131313131315,0.32323232323232326,0.3333333333333333,0.3434343434343434,0.35353535353535354,0.36363636363636365,0.37373737373737376,0.3838383838383838,0.3939393939393939,0.40404040404040403,0.41414141414141414,0.42424242424242425,0.43434343434343436,0.4444444444444444,0.45454545454545453,0.46464646464646464,0.47474747474747475,0.48484848484848486,0.494949494949495,0.5050505050505051,0.5151515151515151,0.5252525252525253,0.5353535353535354,0.5454545454545454,0.5555555555555556,0.5656565656565656,0.5757575757575758,0.5858585858585859,0.5959595959595959,0.6060606060606061,0.6161616161616161,0.6262626262626263,0.6363636363636364,0.6464646464646465,0.6565656565656566,0.6666666666666666,0.6767676767676768,0.6868686868686869,0.696969696969697,0.7070707070707071,0.7171717171717171,0.7272727272727273,0.7373737373737373,0.7474747474747475,0.7575757575757576,0.7676767676767676,0.7777777777777778,0.7878787878787878,0.797979797979798,0.8080808080808081,0.8181818181818182,0.8282828282828283,0.8383838383838383,0.8484848484848485,0.8585858585858586,0.8686868686868687,0.8787878787878788,0.8888888888888888,0.898989898989899,0.9090909090909091,0.9191919191919192,0.9292929292929293,0.9393939393939394,0.9494949494949495,0.9595959595959596,0.9696969696969697,0.9797979797979798,0.98989898989899,1.0],\"y\":[-6.6874262296932265,-6.829432052835984,-5.59047424597267,-5.976489276423312,-4.092367256965065,-5.39307510118236,-3.8068982200237405,-6.136107228509367,-6.8151973565730835,-5.565382391195958,-4.375895949455578,-3.760485858791113,-6.754688084466551,-4.824300563427634,-5.52595062102378,-6.3378335471294065,-3.0543125714811343,-4.278900099708506,-5.93067963794472,-5.205126522921306,-5.601768595846629,-6.026465236007853,-6.4067420272520685,-3.2391493065309773,-4.7845855803951896,-5.620443521674236,-6.206620299811739,-3.922902267631179,-5.222985143545303,-5.457385208084562,-5.987533200307928,-5.060010070944687,-5.397620122651418,-6.284712179274461,-6.735000931752831,-4.278629421069374,-4.504010851830566,-5.342444697768789,-5.394766221356312,-4.192741901590026,-3.0595709454141926,-6.237011775415116,-6.973987824318379,-4.913783865369675,-5.903520774897731,-4.59421995659088,-4.1225265289804796,-6.457966507538131,-4.316637957697737,-4.561861594291388,-4.854520669675028,-3.5039242191286855,-5.563932284038044,-5.302468610986621,-3.8052487115358793,-3.8238669206711977,-6.584415034037431,-3.7905660264284458,-6.723591254224798,-5.185983197329615,-5.080968383764003,-5.027094466810981,-4.549936169811947,-5.148343674515804,-4.196708837755386,-3.9297365794350414,-4.090058809327308,-5.336733025546682,-6.700419393945597,-3.475329954811489,-4.5526066273919685,-6.923105108682796,-6.889478899787659,-3.996657727916245,-6.9071135321281245,-6.416445251691865,-5.665207227760563,-3.1665468802822394,-5.830304890120358,-3.5972075432894592,-5.802575876111328,-4.100514049482162,-6.38197066692527,-6.702626553059812,-3.9790242842492933,-5.619991927686209,-4.926367217010969,-3.4943559861736206,-6.369451249168813,-6.619621430213733,-3.6419335595990563,-6.544142701924831,-5.0609703774673305,-4.915198629335233,-4.878808909841706,-6.441541961605298,-5.9779498830067395,-6.064884480030446,-3.8194230353612935,-3.1135425526321128],\"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('7f706e61-4b95-4c1b-85a6-74201e0b296c'))\n",
|
183
|
+
"})\n",
|
184
|
+
" }) \n",
|
185
|
+
"</script>"
|
186
|
+
],
|
187
|
+
"text/plain": [
|
188
|
+
"#<Plotly::Offline::HTML:0x007fcea3f8ace0 @id=\"7f706e61-4b95-4c1b-85a6-74201e0b296c\", @data=[{:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[6.77311715080506, 4.862765964855296, 4.13142835150361, 4.472879140134292, 6.59712986410501, 4.581611643903291, 3.732699233243934, 3.3187335628025205, 3.514708853058782, 4.628537440947461, 3.0572774512304406, 5.310455588442985, 3.2195080414253963, 5.508880810199349, 4.079165256692786, 5.144490489745197, 5.087503837699314, 6.662864395553022, 5.483400490383898, 6.2328950486666255, 6.322765720406402, 5.526923555372802, 4.16061793970762, 6.088249600149483, 3.5018686225984106, 4.946459566075038, 6.262236327371372, 3.34114474449722, 3.8219300015718876, 6.315086432207746, 4.4222109816989015, 3.293453780418781, 3.4266982295548094, 6.795912383470517, 3.806362754241208, 6.525504377480084, 3.711796659136092, 5.466409909504149, 6.907469414115759, 3.9719619934968544, 3.6170069436245633, 6.677747361952273, 5.0215441055200625, 5.449361223852634, 5.205348702752944, 4.8313217488121065, 4.577881215875594, 5.39857266789679, 5.650277691412304, 4.207490301347633, 5.384928342509909, 5.4228356432784395, 3.604462119954402, 6.63007621597188, 4.944803950358495, 3.1187056044625483, 4.6900366441183845, 4.8037917898775735, 3.2810453262061126, 5.152617488407588, 4.9613246386880485, 6.589949076774452, 4.272857036948782, 4.376334785729922, 6.164340938513066, 5.816620958760915, 4.207286847990619, 5.9027685322685635, 6.012038460114505, 3.0298961869363588, 5.944855980400082, 4.277758706768546, 6.170483345532586, 3.2845989481724693, 3.9965460445434937, 6.79088944285402, 6.305277279551269, 6.990476823897151, 4.949469499114802, 6.577883393953493, 6.161702137067484, 5.285744641961875, 5.49711766662192, 5.177694032263164, 4.251220447376818, 3.113140026042313, 5.783385159954685, 3.238061177738049, 4.120580345684331, 6.931017288113543, 6.011796291756263, 6.9517494903724755, 4.7292782340504775, 5.647087277451479, 3.887764966738919, 4.950517367118577, 6.308283654337372, 6.180046956438597, 3.0513566525381157, 3.768961668864381], :type=>:scatter, :mode=>:markers}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-0.3232758959890951, 0.4970899355553401, 0.44580438294604785, 0.22282666560072417, 0.12703635909022337, 0.3456844063472898, -0.33137320867313524, 0.21374727733358878, 0.09019084088863194, -0.07828103511131257, 0.11818140562358637, 0.4272277810810994, -0.03561356188099385, -0.3434670471909461, -0.15441368070673223, 0.4389207489024166, -0.426092981190782, -0.05380118340131901, 0.28559718846282, -0.14375100573294086, 0.3805021888930167, -0.21313907659185227, 0.3317363568334334, 0.043720004132245416, 0.3385507311363235, -0.3353926890263679, 0.4548490493897521, -0.01912803436170163, 0.11242276332062229, 0.43577114881048107, -0.11751025750114097, -0.16136173282450217, 0.2624780071814047, -0.45180056620937326, -0.16006360685277488, -0.16251140528885422, 0.4903074614775397, 0.12150233210233363, -0.14483220560150611, -0.30705614974414486, -0.2995249792105883, 0.39615142135164494, 0.2773298630939377, -0.33218218441388114, -0.1459411809357657, 0.26788450414886245, 0.39478091637643364, -0.1285213470719101, 0.4388783001516544, -0.25053749948666426, 0.2299278509161916, 0.0031951945713151186, 0.4950458782762306, 0.2996194766785414, 0.30357480618776755, 0.12284737965102088, 0.22672540838058264, -0.49441378767479127, 0.13997949874714333, 0.20297488100662697, -0.09180582878714005, 0.48403708564866166, -0.3647509348411496, 0.34962860591895784, -0.31627892268415014, -0.0803803306066112, -0.22892199408312386, 0.37197501974988845, 0.34157035563814586, 0.4580645660977263, -0.17860377020291196, -0.3358840997156075, 0.48618731667749526, -0.31731144800911437, 0.293577228357466, 0.28512440957105634, -0.0696911314205142, -0.21765739644286886, 0.2272563357891796, -0.48669044359902114, -0.02978911562197728, -0.02411438111270403, 0.3200812721047154, 0.43591726876951487, 0.24606053395619543, 0.10820705760286786, 0.10392345906011524, -0.13637797972818855, -0.39197245334844943, 0.4735280906807313, 0.14094063653786293, 0.4660935792863511, 0.10419400195156325, -0.27382310522488906, 0.12707720874721307, -0.4903762719072222, 0.4587878771719298, -0.08868757443663533, 0.2604772137426018, -0.3223224415138706], :type=>:scatter, :mode=>:\"markers+lines\"}, {:x=>[0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.050505050505050504, 0.06060606060606061, 0.0707070707070707, 0.08080808080808081, 0.09090909090909091, 0.10101010101010101, 0.1111111111111111, 0.12121212121212122, 0.13131313131313133, 0.1414141414141414, 0.15151515151515152, 0.16161616161616163, 0.1717171717171717, 0.18181818181818182, 0.1919191919191919, 0.20202020202020202, 0.21212121212121213, 0.2222222222222222, 0.23232323232323232, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.2727272727272727, 0.2828282828282828, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.3333333333333333, 0.3434343434343434, 0.35353535353535354, 0.36363636363636365, 0.37373737373737376, 0.3838383838383838, 0.3939393939393939, 0.40404040404040403, 0.41414141414141414, 0.42424242424242425, 0.43434343434343436, 0.4444444444444444, 0.45454545454545453, 0.46464646464646464, 0.47474747474747475, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515151, 0.5252525252525253, 0.5353535353535354, 0.5454545454545454, 0.5555555555555556, 0.5656565656565656, 0.5757575757575758, 0.5858585858585859, 0.5959595959595959, 0.6060606060606061, 0.6161616161616161, 0.6262626262626263, 0.6363636363636364, 0.6464646464646465, 0.6565656565656566, 0.6666666666666666, 0.6767676767676768, 0.6868686868686869, 0.696969696969697, 0.7070707070707071, 0.7171717171717171, 0.7272727272727273, 0.7373737373737373, 0.7474747474747475, 0.7575757575757576, 0.7676767676767676, 0.7777777777777778, 0.7878787878787878, 0.797979797979798, 0.8080808080808081, 0.8181818181818182, 0.8282828282828283, 0.8383838383838383, 0.8484848484848485, 0.8585858585858586, 0.8686868686868687, 0.8787878787878788, 0.8888888888888888, 0.898989898989899, 0.9090909090909091, 0.9191919191919192, 0.9292929292929293, 0.9393939393939394, 0.9494949494949495, 0.9595959595959596, 0.9696969696969697, 0.9797979797979798, 0.98989898989899, 1.0], :y=>[-6.6874262296932265, -6.829432052835984, -5.59047424597267, -5.976489276423312, -4.092367256965065, -5.39307510118236, -3.8068982200237405, -6.136107228509367, -6.8151973565730835, -5.565382391195958, -4.375895949455578, -3.760485858791113, -6.754688084466551, -4.824300563427634, -5.52595062102378, -6.3378335471294065, -3.0543125714811343, -4.278900099708506, -5.93067963794472, -5.205126522921306, -5.601768595846629, -6.026465236007853, -6.4067420272520685, -3.2391493065309773, -4.7845855803951896, -5.620443521674236, -6.206620299811739, -3.922902267631179, -5.222985143545303, -5.457385208084562, -5.987533200307928, -5.060010070944687, -5.397620122651418, -6.284712179274461, -6.735000931752831, -4.278629421069374, -4.504010851830566, -5.342444697768789, -5.394766221356312, -4.192741901590026, -3.0595709454141926, -6.237011775415116, -6.973987824318379, -4.913783865369675, -5.903520774897731, -4.59421995659088, -4.1225265289804796, -6.457966507538131, -4.316637957697737, -4.561861594291388, -4.854520669675028, -3.5039242191286855, -5.563932284038044, -5.302468610986621, -3.8052487115358793, -3.8238669206711977, -6.584415034037431, -3.7905660264284458, -6.723591254224798, -5.185983197329615, -5.080968383764003, -5.027094466810981, -4.549936169811947, -5.148343674515804, -4.196708837755386, -3.9297365794350414, -4.090058809327308, -5.336733025546682, -6.700419393945597, -3.475329954811489, -4.5526066273919685, -6.923105108682796, -6.889478899787659, -3.996657727916245, -6.9071135321281245, -6.416445251691865, -5.665207227760563, -3.1665468802822394, -5.830304890120358, -3.5972075432894592, -5.802575876111328, -4.100514049482162, -6.38197066692527, -6.702626553059812, -3.9790242842492933, -5.619991927686209, -4.926367217010969, -3.4943559861736206, -6.369451249168813, -6.619621430213733, -3.6419335595990563, -6.544142701924831, -5.0609703774673305, -4.915198629335233, -4.878808909841706, -6.441541961605298, -5.9779498830067395, -6.064884480030446, -3.8194230353612935, -3.1135425526321128], :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
|
+
}
|