rubydown 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +35 -0
- data/.gitignore +3 -0
- data/Dockerfile +9 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +43 -0
- data/LICENSE +21 -0
- data/README.md +32 -0
- data/Rakefile +2 -0
- data/_config.yml +1 -0
- data/appveyor.yml +25 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/_config.yml +1 -0
- data/docs/index.html +20 -0
- data/docs/sidebyside.md +1 -0
- data/examples/bio.html +129 -0
- data/examples/bio.md +73 -0
- data/examples/graph.html +160 -0
- data/examples/graph.md +11 -0
- data/examples/index.html +217 -0
- data/examples/index.md +58 -0
- data/examples/numo-gnuplot.ipynb +1515 -0
- data/examples/rbplotly-bar.html +146 -0
- data/examples/rbplotly-bar.md +54 -0
- data/examples/rbplotly-basic.html +134 -0
- data/examples/rbplotly-basic.md +43 -0
- data/examples/rbplotly-boxplot.html +136 -0
- data/examples/rbplotly-boxplot.md +60 -0
- data/examples/rbplotly-heatmap.html +95 -0
- data/examples/rbplotly-heatmap.md +35 -0
- data/examples/rbplotly-hist.html +52 -0
- data/examples/rbplotly-hist.md +9 -0
- data/examples/rbplotly-line.html +62 -0
- data/examples/rbplotly-line.md +19 -0
- data/examples/rbplotly-pie.html +100 -0
- data/examples/rbplotly-pie.md +40 -0
- data/examples/rbplotly-scatter.html +148 -0
- data/examples/rbplotly-scatter.md +71 -0
- data/examples/rumale-kmeans.html +75 -0
- data/examples/rumale-kmeans.md +33 -0
- data/examples/rumale.html +967 -0
- data/examples/rumale.md +31 -0
- data/examples/table.html +57 -0
- data/examples/table.md +7 -0
- data/exe/rubydown +114 -0
- data/lib/rubydown.rb +59 -0
- data/lib/rubydown/version.rb +3 -0
- data/rubydown.gemspec +47 -0
- data/templates/template.html.erb +26 -0
- metadata +207 -0
@@ -0,0 +1,1515 @@
|
|
1
|
+
{
|
2
|
+
"cells": [
|
3
|
+
{
|
4
|
+
"cell_type": "markdown",
|
5
|
+
"metadata": {},
|
6
|
+
"source": [
|
7
|
+
"# simple functions\n",
|
8
|
+
"\n",
|
9
|
+
"[Original Demo](http://gnuplot.sourceforge.net/demo_4.6/simple.html)"
|
10
|
+
]
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"cell_type": "code",
|
14
|
+
"execution_count": 1,
|
15
|
+
"metadata": {
|
16
|
+
"collapsed": false
|
17
|
+
},
|
18
|
+
"outputs": [
|
19
|
+
{
|
20
|
+
"data": {
|
21
|
+
"text/plain": [
|
22
|
+
"true"
|
23
|
+
]
|
24
|
+
},
|
25
|
+
"execution_count": 1,
|
26
|
+
"metadata": {},
|
27
|
+
"output_type": "execute_result"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"source": [
|
31
|
+
"require \"numo/gnuplot\""
|
32
|
+
]
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"cell_type": "code",
|
36
|
+
"execution_count": 2,
|
37
|
+
"metadata": {
|
38
|
+
"collapsed": false
|
39
|
+
},
|
40
|
+
"outputs": [
|
41
|
+
{
|
42
|
+
"data": {
|
43
|
+
"image/svg+xml": [
|
44
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
45
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
46
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
47
|
+
"<svg \n",
|
48
|
+
" width=\"600\" height=\"480\" \n",
|
49
|
+
" viewBox=\"0 0 600 480\"\n",
|
50
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
51
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
52
|
+
">\n",
|
53
|
+
"\n",
|
54
|
+
"<title>Gnuplot</title>\n",
|
55
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
56
|
+
"\n",
|
57
|
+
"<g id=\"gnuplot_canvas\">\n",
|
58
|
+
"\n",
|
59
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
60
|
+
"<defs>\n",
|
61
|
+
"\n",
|
62
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
63
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
64
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
65
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
66
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
67
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
68
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
69
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
70
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
71
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
72
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
73
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
74
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
75
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
76
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
77
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
78
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
79
|
+
"\t</filter>\n",
|
80
|
+
"</defs>\n",
|
81
|
+
"<g style=\"fill:none; color:white; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
82
|
+
"</g>\n",
|
83
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
84
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
85
|
+
"\t\t<text>-1.5</text>\n",
|
86
|
+
"\t</g>\n",
|
87
|
+
"\t<path stroke='black' d='M53.9,372.8 L62.9,372.8 M575.0,372.8 L566.0,372.8 '/>\t<g transform=\"translate(45.6,377.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
88
|
+
"\t\t<text>-1</text>\n",
|
89
|
+
"\t</g>\n",
|
90
|
+
"\t<path stroke='black' d='M53.9,301.6 L62.9,301.6 M575.0,301.6 L566.0,301.6 '/>\t<g transform=\"translate(45.6,306.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
91
|
+
"\t\t<text>-0.5</text>\n",
|
92
|
+
"\t</g>\n",
|
93
|
+
"\t<path stroke='black' d='M53.9,230.3 L62.9,230.3 M575.0,230.3 L566.0,230.3 '/>\t<g transform=\"translate(45.6,234.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
94
|
+
"\t\t<text> 0</text>\n",
|
95
|
+
"\t</g>\n",
|
96
|
+
"\t<path stroke='black' d='M53.9,159.1 L62.9,159.1 M575.0,159.1 L566.0,159.1 '/>\t<g transform=\"translate(45.6,163.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
97
|
+
"\t\t<text> 0.5</text>\n",
|
98
|
+
"\t</g>\n",
|
99
|
+
"\t<path stroke='black' d='M53.9,87.9 L62.9,87.9 M575.0,87.9 L566.0,87.9 '/>\t<g transform=\"translate(45.6,92.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
100
|
+
"\t\t<text> 1</text>\n",
|
101
|
+
"\t</g>\n",
|
102
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
103
|
+
"\t\t<text> 1.5</text>\n",
|
104
|
+
"\t</g>\n",
|
105
|
+
"\t<path stroke='black' d='M53.9,444.0 L53.9,435.0 M53.9,16.7 L53.9,25.7 '/>\t<g transform=\"translate(53.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
106
|
+
"\t\t<text>-10</text>\n",
|
107
|
+
"\t</g>\n",
|
108
|
+
"\t<path stroke='black' d='M184.2,444.0 L184.2,435.0 M184.2,16.7 L184.2,25.7 '/>\t<g transform=\"translate(184.2,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
109
|
+
"\t\t<text>-5</text>\n",
|
110
|
+
"\t</g>\n",
|
111
|
+
"\t<path stroke='black' d='M314.5,444.0 L314.5,435.0 M314.5,16.7 L314.5,25.7 '/>\t<g transform=\"translate(314.5,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
112
|
+
"\t\t<text> 0</text>\n",
|
113
|
+
"\t</g>\n",
|
114
|
+
"\t<path stroke='black' d='M444.7,444.0 L444.7,435.0 M444.7,16.7 L444.7,25.7 '/>\t<g transform=\"translate(444.7,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
115
|
+
"\t\t<text> 5</text>\n",
|
116
|
+
"\t</g>\n",
|
117
|
+
"\t<path stroke='black' d='M575.0,444.0 L575.0,435.0 M575.0,16.7 L575.0,25.7 '/>\t<g transform=\"translate(575.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
118
|
+
"\t\t<text> 10</text>\n",
|
119
|
+
"\t</g>\n",
|
120
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/>\t<path stroke='black' d='M62.2,79.7 L62.2,25.7 L220.6,25.7 L220.6,79.7 L62.2,79.7 Z '/></g>\n",
|
121
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
122
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
123
|
+
"\t<g transform=\"translate(161.8,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
124
|
+
"\t\t<text>sin(x)</text>\n",
|
125
|
+
"\t</g>\n",
|
126
|
+
"\t<path d='M170.1,34.7 L212.3,34.7 M53.9,152.9 L64.5,206.7 L75.2,264.4 L85.8,316.5 L96.4,354.4 L107.1,372.0 \n",
|
127
|
+
"\t\tL117.7,366.3 L128.3,338.3 L139.0,292.5 L149.6,236.5 L160.2,179.5 L170.9,130.9 L181.5,98.6 L192.2,87.9 \n",
|
128
|
+
"\t\tL202.8,100.7 L213.4,134.7 L224.1,184.5 L234.7,241.8 L245.3,297.2 L256.0,341.6 L266.6,367.8 L277.2,371.3 \n",
|
129
|
+
"\t\tL287.9,351.7 L298.5,312.2 L309.1,259.2 L319.8,201.5 L330.4,148.5 L341.0,109.0 L351.7,89.4 L362.3,92.9 \n",
|
130
|
+
"\t\tL372.9,119.1 L383.6,163.5 L394.2,218.9 L404.8,276.2 L415.5,326.0 L426.1,360.0 L436.7,372.8 L447.4,362.1 \n",
|
131
|
+
"\t\tL458.0,329.8 L468.7,281.2 L479.3,224.2 L489.9,168.2 L500.6,122.4 L511.2,94.4 L521.8,88.7 L532.5,106.3 \n",
|
132
|
+
"\t\tL543.1,144.2 L553.7,196.3 L564.4,254.0 L575.0,307.8 '/></g>\n",
|
133
|
+
"\t</g>\n",
|
134
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
135
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
136
|
+
"\t<g transform=\"translate(161.8,57.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
137
|
+
"\t\t<text>atan(x)</text>\n",
|
138
|
+
"\t</g>\n",
|
139
|
+
"\t<path d='M170.1,52.7 L212.3,52.7 M53.9,439.9 L64.5,439.3 L75.2,438.6 L85.8,437.9 L96.4,437.1 L107.1,436.3 \n",
|
140
|
+
"\t\tL117.7,435.3 L128.3,434.3 L139.0,433.1 L149.6,431.8 L160.2,430.2 L170.9,428.5 L181.5,426.5 L192.2,424.2 \n",
|
141
|
+
"\t\tL202.8,421.4 L213.4,418.1 L224.1,414.1 L234.7,409.1 L245.3,402.7 L256.0,394.4 L266.6,383.1 L277.2,367.1 \n",
|
142
|
+
"\t\tL287.9,343.7 L298.5,308.6 L309.1,259.0 L319.8,201.7 L330.4,152.1 L341.0,117.0 L351.7,93.6 L362.3,77.6 \n",
|
143
|
+
"\t\tL372.9,66.3 L383.6,58.0 L394.2,51.6 L404.8,46.6 L415.5,42.6 L426.1,39.3 L436.7,36.5 L447.4,34.2 \n",
|
144
|
+
"\t\tL458.0,32.2 L468.7,30.5 L479.3,28.9 L489.9,27.6 L500.6,26.4 L511.2,25.4 L521.8,24.4 L532.5,23.6 \n",
|
145
|
+
"\t\tL543.1,22.8 L553.7,22.1 L564.4,21.4 L575.0,20.8 '/></g>\n",
|
146
|
+
"\t</g>\n",
|
147
|
+
"\t<g id=\"gnuplot_plot_3\" ><title>gnuplot_plot_3</title>\n",
|
148
|
+
"<g style=\"fill:none; color:blue; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
149
|
+
"\t<g transform=\"translate(161.8,75.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
150
|
+
"\t\t<text>cos(atan(x))</text>\n",
|
151
|
+
"\t</g>\n",
|
152
|
+
"\t<path d='M170.1,70.7 L212.3,70.7 M53.9,216.2 L64.5,215.6 L75.2,214.9 L85.8,214.2 L96.4,213.4 L107.1,212.6 \n",
|
153
|
+
"\t\tL117.7,211.7 L128.3,210.6 L139.0,209.4 L149.6,208.1 L160.2,206.6 L170.9,204.9 L181.5,203.0 L192.2,200.7 \n",
|
154
|
+
"\t\tL202.8,198.0 L213.4,194.8 L224.1,190.9 L234.7,186.1 L245.3,180.1 L256.0,172.4 L266.6,162.2 L277.2,148.7 \n",
|
155
|
+
"\t\tL287.9,130.7 L298.5,108.9 L309.1,90.8 L319.8,90.8 L330.4,108.9 L341.0,130.7 L351.7,148.7 L362.3,162.2 \n",
|
156
|
+
"\t\tL372.9,172.4 L383.6,180.1 L394.2,186.1 L404.8,190.9 L415.5,194.8 L426.1,198.0 L436.7,200.7 L447.4,203.0 \n",
|
157
|
+
"\t\tL458.0,204.9 L468.7,206.6 L479.3,208.1 L489.9,209.4 L500.6,210.6 L511.2,211.7 L521.8,212.6 L532.5,213.4 \n",
|
158
|
+
"\t\tL543.1,214.2 L553.7,214.9 L564.4,215.6 L575.0,216.2 '/></g>\n",
|
159
|
+
"\t</g>\n",
|
160
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
161
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
162
|
+
"</g>\n",
|
163
|
+
"</svg>\n",
|
164
|
+
"\n"
|
165
|
+
],
|
166
|
+
"text/plain": [
|
167
|
+
"#<Numo::Gnuplot::NotePlot:0x000000020b8130 @block=#<Proc:0x000000020b80e0@<main>:9>>"
|
168
|
+
]
|
169
|
+
},
|
170
|
+
"execution_count": 2,
|
171
|
+
"metadata": {},
|
172
|
+
"output_type": "execute_result"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"source": [
|
176
|
+
"# # Requires data files \"[123].dat\" from this directory,\n",
|
177
|
+
"# # so change current working directory to this directory before running.\n",
|
178
|
+
"# # gnuplot> set term <term-type>\n",
|
179
|
+
"# # gnuplot> load 'simple.dem'\n",
|
180
|
+
"# #\n",
|
181
|
+
"# set key left box\n",
|
182
|
+
"# set samples 50\n",
|
183
|
+
"# plot [-10:10] sin(x),atan(x),cos(atan(x))\n",
|
184
|
+
"\n",
|
185
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
186
|
+
" set :key, :left, :box\n",
|
187
|
+
" set samples:50\n",
|
188
|
+
" plot -10..10,\n",
|
189
|
+
" \"sin(x)\",\n",
|
190
|
+
" \"atan(x)\",\n",
|
191
|
+
" \"cos(atan(x))\"\n",
|
192
|
+
"end"
|
193
|
+
]
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"cell_type": "code",
|
197
|
+
"execution_count": 3,
|
198
|
+
"metadata": {
|
199
|
+
"collapsed": false
|
200
|
+
},
|
201
|
+
"outputs": [
|
202
|
+
{
|
203
|
+
"data": {
|
204
|
+
"image/svg+xml": [
|
205
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
206
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
207
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
208
|
+
"<svg \n",
|
209
|
+
" width=\"600\" height=\"480\" \n",
|
210
|
+
" viewBox=\"0 0 600 480\"\n",
|
211
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
212
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
213
|
+
">\n",
|
214
|
+
"\n",
|
215
|
+
"<title>Gnuplot</title>\n",
|
216
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
217
|
+
"\n",
|
218
|
+
"<g id=\"gnuplot_canvas\">\n",
|
219
|
+
"\n",
|
220
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
221
|
+
"<defs>\n",
|
222
|
+
"\n",
|
223
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
224
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
225
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
226
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
227
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
228
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
229
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
230
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
231
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
232
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
233
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
234
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
235
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
236
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
237
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
238
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
239
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
240
|
+
"\t</filter>\n",
|
241
|
+
"</defs>\n",
|
242
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
243
|
+
"</g>\n",
|
244
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
245
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
246
|
+
"\t\t<text>-1</text>\n",
|
247
|
+
"\t</g>\n",
|
248
|
+
"\t<path stroke='black' d='M53.9,337.2 L62.9,337.2 M575.0,337.2 L566.0,337.2 '/>\t<g transform=\"translate(45.6,341.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
249
|
+
"\t\t<text>-0.5</text>\n",
|
250
|
+
"\t</g>\n",
|
251
|
+
"\t<path stroke='black' d='M53.9,230.3 L62.9,230.3 M575.0,230.3 L566.0,230.3 '/>\t<g transform=\"translate(45.6,234.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
252
|
+
"\t\t<text> 0</text>\n",
|
253
|
+
"\t</g>\n",
|
254
|
+
"\t<path stroke='black' d='M53.9,123.5 L62.9,123.5 M575.0,123.5 L566.0,123.5 '/>\t<g transform=\"translate(45.6,128.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
255
|
+
"\t\t<text> 0.5</text>\n",
|
256
|
+
"\t</g>\n",
|
257
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
258
|
+
"\t\t<text> 1</text>\n",
|
259
|
+
"\t</g>\n",
|
260
|
+
"\t<path stroke='black' d='M61.7,444.0 L61.7,435.0 M61.7,16.7 L61.7,25.7 '/>\t<g transform=\"translate(61.7,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
261
|
+
"\t\t<text>-1.5</text>\n",
|
262
|
+
"\t</g>\n",
|
263
|
+
"\t<path stroke='black' d='M117.0,444.0 L117.0,435.0 M117.0,16.7 L117.0,25.7 '/>\t<g transform=\"translate(117.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
264
|
+
"\t\t<text>-1</text>\n",
|
265
|
+
"\t</g>\n",
|
266
|
+
"\t<path stroke='black' d='M172.3,444.0 L172.3,435.0 M172.3,16.7 L172.3,25.7 '/>\t<g transform=\"translate(172.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
267
|
+
"\t\t<text>-0.5</text>\n",
|
268
|
+
"\t</g>\n",
|
269
|
+
"\t<path stroke='black' d='M227.6,444.0 L227.6,435.0 M227.6,16.7 L227.6,25.7 '/>\t<g transform=\"translate(227.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
270
|
+
"\t\t<text> 0</text>\n",
|
271
|
+
"\t</g>\n",
|
272
|
+
"\t<path stroke='black' d='M282.9,444.0 L282.9,435.0 M282.9,16.7 L282.9,25.7 '/>\t<g transform=\"translate(282.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
273
|
+
"\t\t<text> 0.5</text>\n",
|
274
|
+
"\t</g>\n",
|
275
|
+
"\t<path stroke='black' d='M338.2,444.0 L338.2,435.0 M338.2,16.7 L338.2,25.7 '/>\t<g transform=\"translate(338.2,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
276
|
+
"\t\t<text> 1</text>\n",
|
277
|
+
"\t</g>\n",
|
278
|
+
"\t<path stroke='black' d='M393.5,444.0 L393.5,435.0 M393.5,16.7 L393.5,25.7 '/>\t<g transform=\"translate(393.5,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
279
|
+
"\t\t<text> 1.5</text>\n",
|
280
|
+
"\t</g>\n",
|
281
|
+
"\t<path stroke='black' d='M448.8,444.0 L448.8,435.0 M448.8,16.7 L448.8,25.7 '/>\t<g transform=\"translate(448.8,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
282
|
+
"\t\t<text> 2</text>\n",
|
283
|
+
"\t</g>\n",
|
284
|
+
"\t<path stroke='black' d='M504.1,444.0 L504.1,435.0 M504.1,16.7 L504.1,25.7 '/>\t<g transform=\"translate(504.1,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
285
|
+
"\t\t<text> 2.5</text>\n",
|
286
|
+
"\t</g>\n",
|
287
|
+
"\t<path stroke='black' d='M559.3,444.0 L559.3,435.0 M559.3,16.7 L559.3,25.7 '/>\t<g transform=\"translate(559.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
288
|
+
"\t\t<text> 3</text>\n",
|
289
|
+
"\t</g>\n",
|
290
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
291
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
292
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
293
|
+
"\t<g transform=\"translate(507.9,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
294
|
+
"\t\t<text>cos(x)</text>\n",
|
295
|
+
"\t</g>\n",
|
296
|
+
"\t<path d='M516.2,34.7 L558.4,34.7 M53.9,230.3 L59.2,220.2 L64.4,210.0 L69.7,199.9 L75.0,189.9 L80.2,180.0 \n",
|
297
|
+
"\t\tL85.5,170.2 L90.7,160.5 L96.0,150.9 L101.3,141.6 L106.5,132.4 L111.8,123.5 L117.1,114.8 L122.3,106.4 \n",
|
298
|
+
"\t\tL127.6,98.3 L132.9,90.4 L138.1,82.9 L143.4,75.7 L148.6,68.9 L153.9,62.4 L159.2,56.3 L164.4,50.6 \n",
|
299
|
+
"\t\tL169.7,45.3 L175.0,40.5 L180.2,36.0 L185.5,32.0 L190.8,28.5 L196.0,25.4 L201.3,22.7 L206.5,20.6 \n",
|
300
|
+
"\t\tL211.8,18.9 L217.1,17.7 L222.3,16.9 L227.6,16.7 L232.9,16.9 L238.1,17.7 L243.4,18.9 L248.7,20.6 \n",
|
301
|
+
"\t\tL253.9,22.7 L259.2,25.4 L264.4,28.5 L269.7,32.0 L275.0,36.0 L280.2,40.5 L285.5,45.3 L290.8,50.6 \n",
|
302
|
+
"\t\tL296.0,56.3 L301.3,62.4 L306.6,68.9 L311.8,75.7 L317.1,82.9 L322.3,90.4 L327.6,98.3 L332.9,106.4 \n",
|
303
|
+
"\t\tL338.1,114.8 L343.4,123.5 L348.7,132.4 L353.9,141.6 L359.2,150.9 L364.5,160.5 L369.7,170.2 L375.0,180.0 \n",
|
304
|
+
"\t\tL380.2,189.9 L385.5,199.9 L390.8,210.0 L396.0,220.2 L401.3,230.3 L406.6,240.5 L411.8,250.7 L417.1,260.8 \n",
|
305
|
+
"\t\tL422.4,270.8 L427.6,280.7 L432.9,290.5 L438.1,300.2 L443.4,309.8 L448.7,319.1 L453.9,328.3 L459.2,337.2 \n",
|
306
|
+
"\t\tL464.5,345.9 L469.7,354.3 L475.0,362.4 L480.3,370.3 L485.5,377.8 L490.8,385.0 L496.0,391.8 L501.3,398.3 \n",
|
307
|
+
"\t\tL506.6,404.4 L511.8,410.1 L517.1,415.4 L522.4,420.2 L527.6,424.7 L532.9,428.7 L538.2,432.2 L543.4,435.3 \n",
|
308
|
+
"\t\tL548.7,438.0 L553.9,440.1 L559.2,441.8 L564.5,443.0 L569.7,443.8 L575.0,444.0 '/></g>\n",
|
309
|
+
"\t</g>\n",
|
310
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
311
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
312
|
+
"\t<g transform=\"translate(507.9,57.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
313
|
+
"\t\t<text>-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))</text>\n",
|
314
|
+
"\t</g>\n",
|
315
|
+
"\t<path d='M516.2,52.7 L558.4,52.7 M53.9,114.9 L59.2,123.6 L64.4,132.5 L69.7,141.7 L75.0,151.0 L80.2,160.6 \n",
|
316
|
+
"\t\tL85.5,170.2 L90.7,180.1 L96.0,190.0 L101.3,200.0 L106.5,210.1 L111.8,220.3 L117.1,230.4 L122.3,240.6 \n",
|
317
|
+
"\t\tL127.6,250.7 L132.9,260.8 L138.1,270.9 L143.4,280.8 L148.6,290.6 L153.9,300.3 L159.2,309.8 L164.4,319.2 \n",
|
318
|
+
"\t\tL169.7,328.3 L175.0,337.2 L180.2,345.9 L185.5,354.3 L190.8,362.5 L196.0,370.3 L201.3,377.8 L206.5,385.0 \n",
|
319
|
+
"\t\tL211.8,391.9 L217.1,398.3 L222.3,404.4 L227.6,410.1 L232.9,415.4 L238.1,420.3 L243.4,424.7 L248.7,428.7 \n",
|
320
|
+
"\t\tL253.9,432.3 L259.2,435.4 L264.4,438.0 L269.7,440.2 L275.0,441.8 L280.2,443.0 L285.5,443.8 L290.8,444.0 \n",
|
321
|
+
"\t\tL296.0,443.8 L301.3,443.0 L306.6,441.8 L311.8,440.1 L317.1,438.0 L322.3,435.3 L327.6,432.2 L332.9,428.7 \n",
|
322
|
+
"\t\tL338.1,424.7 L343.4,420.2 L348.7,420.2 L353.9,424.7 L359.2,428.7 L364.5,432.2 L369.7,435.3 L375.0,438.0 \n",
|
323
|
+
"\t\tL380.2,440.1 L385.5,441.8 L390.8,443.0 L396.0,443.8 L401.3,444.0 L406.6,443.8 L411.8,443.0 L417.1,441.8 \n",
|
324
|
+
"\t\tL422.4,440.1 L427.6,438.0 L432.9,435.3 L438.1,432.2 L443.4,428.7 L448.7,424.7 L453.9,420.2 L459.2,415.4 \n",
|
325
|
+
"\t\tL464.5,410.1 L469.7,404.4 L475.0,398.3 L480.3,391.8 L485.5,385.0 L490.8,377.8 L496.0,370.3 L501.3,362.4 \n",
|
326
|
+
"\t\tL506.6,354.3 L511.8,345.9 L517.1,337.2 L522.4,328.3 L527.6,319.1 L532.9,309.8 L538.2,300.2 L543.4,290.5 \n",
|
327
|
+
"\t\tL548.7,280.7 L553.9,270.8 L559.2,260.8 L564.5,250.7 L569.7,240.5 L575.0,230.4 '/></g>\n",
|
328
|
+
"\t</g>\n",
|
329
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
330
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
331
|
+
"</g>\n",
|
332
|
+
"</svg>\n",
|
333
|
+
"\n"
|
334
|
+
],
|
335
|
+
"text/plain": [
|
336
|
+
"#<Numo::Gnuplot::NotePlot:0x0000000209dad8 @block=#<Proc:0x00000002097f48@<main>:4>>"
|
337
|
+
]
|
338
|
+
},
|
339
|
+
"execution_count": 3,
|
340
|
+
"metadata": {},
|
341
|
+
"output_type": "execute_result"
|
342
|
+
}
|
343
|
+
],
|
344
|
+
"source": [
|
345
|
+
"# set key right nobox\n",
|
346
|
+
"# set samples 100\n",
|
347
|
+
"# plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))\n",
|
348
|
+
"\n",
|
349
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
350
|
+
" set :key, :right, :nobox\n",
|
351
|
+
" set samples:100\n",
|
352
|
+
" plot \"[-pi/2:pi]\",\n",
|
353
|
+
" \"cos(x)\",\n",
|
354
|
+
" \"-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))\"\n",
|
355
|
+
"end"
|
356
|
+
]
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"cell_type": "code",
|
360
|
+
"execution_count": 4,
|
361
|
+
"metadata": {
|
362
|
+
"collapsed": false
|
363
|
+
},
|
364
|
+
"outputs": [
|
365
|
+
{
|
366
|
+
"data": {
|
367
|
+
"image/svg+xml": [
|
368
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
369
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
370
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
371
|
+
"<svg \n",
|
372
|
+
" width=\"600\" height=\"480\" \n",
|
373
|
+
" viewBox=\"0 0 600 480\"\n",
|
374
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
375
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
376
|
+
">\n",
|
377
|
+
"\n",
|
378
|
+
"<title>Gnuplot</title>\n",
|
379
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
380
|
+
"\n",
|
381
|
+
"<g id=\"gnuplot_canvas\">\n",
|
382
|
+
"\n",
|
383
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
384
|
+
"<defs>\n",
|
385
|
+
"\n",
|
386
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
387
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
388
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
389
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
390
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
391
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
392
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
393
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
394
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
395
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
396
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
397
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
398
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
399
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
400
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
401
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
402
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
403
|
+
"\t</filter>\n",
|
404
|
+
"</defs>\n",
|
405
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
406
|
+
"</g>\n",
|
407
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
408
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
409
|
+
"\t\t<text>-1.5</text>\n",
|
410
|
+
"\t</g>\n",
|
411
|
+
"\t<path stroke='black' d='M53.9,396.5 L62.9,396.5 M575.0,396.5 L566.0,396.5 '/>\t<g transform=\"translate(45.6,401.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
412
|
+
"\t\t<text>-1</text>\n",
|
413
|
+
"\t</g>\n",
|
414
|
+
"\t<path stroke='black' d='M53.9,349.0 L62.9,349.0 M575.0,349.0 L566.0,349.0 '/>\t<g transform=\"translate(45.6,353.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
415
|
+
"\t\t<text>-0.5</text>\n",
|
416
|
+
"\t</g>\n",
|
417
|
+
"\t<path stroke='black' d='M53.9,301.6 L62.9,301.6 M575.0,301.6 L566.0,301.6 '/>\t<g transform=\"translate(45.6,306.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
418
|
+
"\t\t<text> 0</text>\n",
|
419
|
+
"\t</g>\n",
|
420
|
+
"\t<path stroke='black' d='M53.9,254.1 L62.9,254.1 M575.0,254.1 L566.0,254.1 '/>\t<g transform=\"translate(45.6,258.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
421
|
+
"\t\t<text> 0.5</text>\n",
|
422
|
+
"\t</g>\n",
|
423
|
+
"\t<path stroke='black' d='M53.9,206.6 L62.9,206.6 M575.0,206.6 L566.0,206.6 '/>\t<g transform=\"translate(45.6,211.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
424
|
+
"\t\t<text> 1</text>\n",
|
425
|
+
"\t</g>\n",
|
426
|
+
"\t<path stroke='black' d='M53.9,159.1 L62.9,159.1 M575.0,159.1 L566.0,159.1 '/>\t<g transform=\"translate(45.6,163.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
427
|
+
"\t\t<text> 1.5</text>\n",
|
428
|
+
"\t</g>\n",
|
429
|
+
"\t<path stroke='black' d='M53.9,111.7 L62.9,111.7 M575.0,111.7 L566.0,111.7 '/>\t<g transform=\"translate(45.6,116.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
430
|
+
"\t\t<text> 2</text>\n",
|
431
|
+
"\t</g>\n",
|
432
|
+
"\t<path stroke='black' d='M53.9,64.2 L62.9,64.2 M575.0,64.2 L566.0,64.2 '/>\t<g transform=\"translate(45.6,68.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
433
|
+
"\t\t<text> 2.5</text>\n",
|
434
|
+
"\t</g>\n",
|
435
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
436
|
+
"\t\t<text> 3</text>\n",
|
437
|
+
"\t</g>\n",
|
438
|
+
"\t<path stroke='black' d='M53.9,444.0 L53.9,435.0 M53.9,16.7 L53.9,25.7 '/>\t<g transform=\"translate(53.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
439
|
+
"\t\t<text>-3</text>\n",
|
440
|
+
"\t</g>\n",
|
441
|
+
"\t<path stroke='black' d='M119.0,444.0 L119.0,435.0 M119.0,16.7 L119.0,25.7 '/>\t<g transform=\"translate(119.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
442
|
+
"\t\t<text>-2</text>\n",
|
443
|
+
"\t</g>\n",
|
444
|
+
"\t<path stroke='black' d='M184.2,444.0 L184.2,435.0 M184.2,16.7 L184.2,25.7 '/>\t<g transform=\"translate(184.2,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
445
|
+
"\t\t<text>-1</text>\n",
|
446
|
+
"\t</g>\n",
|
447
|
+
"\t<path stroke='black' d='M249.3,444.0 L249.3,435.0 M249.3,16.7 L249.3,25.7 '/>\t<g transform=\"translate(249.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
448
|
+
"\t\t<text> 0</text>\n",
|
449
|
+
"\t</g>\n",
|
450
|
+
"\t<path stroke='black' d='M314.5,444.0 L314.5,435.0 M314.5,16.7 L314.5,25.7 '/>\t<g transform=\"translate(314.5,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
451
|
+
"\t\t<text> 1</text>\n",
|
452
|
+
"\t</g>\n",
|
453
|
+
"\t<path stroke='black' d='M379.6,444.0 L379.6,435.0 M379.6,16.7 L379.6,25.7 '/>\t<g transform=\"translate(379.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
454
|
+
"\t\t<text> 2</text>\n",
|
455
|
+
"\t</g>\n",
|
456
|
+
"\t<path stroke='black' d='M444.7,444.0 L444.7,435.0 M444.7,16.7 L444.7,25.7 '/>\t<g transform=\"translate(444.7,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
457
|
+
"\t\t<text> 3</text>\n",
|
458
|
+
"\t</g>\n",
|
459
|
+
"\t<path stroke='black' d='M509.9,444.0 L509.9,435.0 M509.9,16.7 L509.9,25.7 '/>\t<g transform=\"translate(509.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
460
|
+
"\t\t<text> 4</text>\n",
|
461
|
+
"\t</g>\n",
|
462
|
+
"\t<path stroke='black' d='M575.0,444.0 L575.0,435.0 M575.0,16.7 L575.0,25.7 '/>\t<g transform=\"translate(575.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
463
|
+
"\t\t<text> 5</text>\n",
|
464
|
+
"\t</g>\n",
|
465
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/>\t<path stroke='black' d='M62.2,61.7 L62.2,25.7 L179.1,25.7 L179.1,61.7 L62.2,61.7 Z '/></g>\n",
|
466
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
467
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
468
|
+
"\t<g transform=\"translate(120.3,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
469
|
+
"\t\t<text>asin(x)</text>\n",
|
470
|
+
"\t</g>\n",
|
471
|
+
"\t<path d='M128.6,34.7 L170.8,34.7 M184.8,437.2 L187.4,420.5 L190.1,410.0 L192.7,401.6 L195.3,394.4 L197.9,387.9 \n",
|
472
|
+
"\t\tL200.5,381.9 L203.2,376.3 L205.8,371.1 L208.4,366.1 L211.0,361.2 L213.6,356.6 L216.3,352.1 L218.9,347.7 \n",
|
473
|
+
"\t\tL221.5,343.5 L224.1,339.3 L226.7,335.2 L229.3,331.1 L232.0,327.2 L234.6,323.2 L237.2,319.3 L239.8,315.5 \n",
|
474
|
+
"\t\tL242.4,311.6 L245.1,307.8 L247.7,304.0 L250.3,300.1 L252.9,296.3 L255.5,292.5 L258.2,288.6 L260.8,284.8 \n",
|
475
|
+
"\t\tL263.4,280.9 L266.0,277.0 L268.6,273.0 L271.2,269.0 L273.9,264.9 L276.5,260.7 L279.1,256.5 L281.7,252.1 \n",
|
476
|
+
"\t\tL284.3,247.7 L287.0,243.1 L289.6,238.3 L292.2,233.3 L294.8,228.1 L297.4,222.6 L300.0,216.8 L302.7,210.4 \n",
|
477
|
+
"\t\tL305.3,203.4 L307.9,195.3 L310.5,185.6 L313.1,171.5 '/></g>\n",
|
478
|
+
"\t</g>\n",
|
479
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
480
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
481
|
+
"\t<g transform=\"translate(120.3,57.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
482
|
+
"\t\t<text>acos(x)</text>\n",
|
483
|
+
"\t</g>\n",
|
484
|
+
"\t<path d='M128.6,52.7 L170.8,52.7 M184.8,16.7 L187.4,33.5 L190.1,44.0 L192.7,52.3 L195.3,59.6 L197.9,66.1 \n",
|
485
|
+
"\t\tL200.5,72.1 L203.2,77.6 L205.8,82.9 L208.4,87.9 L211.0,92.7 L213.6,97.4 L216.3,101.9 L218.9,106.2 \n",
|
486
|
+
"\t\tL221.5,110.5 L224.1,114.7 L226.7,118.8 L229.3,122.8 L232.0,126.8 L234.6,130.8 L237.2,134.7 L239.8,138.5 \n",
|
487
|
+
"\t\tL242.4,142.4 L245.1,146.2 L247.7,150.0 L250.3,153.8 L252.9,157.7 L255.5,161.5 L258.2,165.3 L260.8,169.2 \n",
|
488
|
+
"\t\tL263.4,173.1 L266.0,177.0 L268.6,181.0 L271.2,185.0 L273.9,189.1 L276.5,193.3 L279.1,197.5 L281.7,201.9 \n",
|
489
|
+
"\t\tL284.3,206.3 L287.0,210.9 L289.6,215.7 L292.2,220.6 L294.8,225.8 L297.4,231.3 L300.0,237.2 L302.7,243.6 \n",
|
490
|
+
"\t\tL305.3,250.6 L307.9,258.6 L310.5,268.4 L313.1,282.5 '/></g>\n",
|
491
|
+
"\t</g>\n",
|
492
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
493
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
494
|
+
"</g>\n",
|
495
|
+
"</svg>\n",
|
496
|
+
"\n"
|
497
|
+
],
|
498
|
+
"text/plain": [
|
499
|
+
"#<Numo::Gnuplot::NotePlot:0x00000002075790 @block=#<Proc:0x00000002075740@<main>:4>>"
|
500
|
+
]
|
501
|
+
},
|
502
|
+
"execution_count": 4,
|
503
|
+
"metadata": {},
|
504
|
+
"output_type": "execute_result"
|
505
|
+
}
|
506
|
+
],
|
507
|
+
"source": [
|
508
|
+
"# set key left box\n",
|
509
|
+
"# set samples 200\n",
|
510
|
+
"# plot [-3:5] asin(x),acos(x)\n",
|
511
|
+
"\n",
|
512
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
513
|
+
" set :key, :left, :box\n",
|
514
|
+
" set samples:200\n",
|
515
|
+
" plot -3..5,\n",
|
516
|
+
" \"asin(x)\",\n",
|
517
|
+
" \"acos(x)\"\n",
|
518
|
+
"end"
|
519
|
+
]
|
520
|
+
},
|
521
|
+
{
|
522
|
+
"cell_type": "code",
|
523
|
+
"execution_count": 5,
|
524
|
+
"metadata": {
|
525
|
+
"collapsed": false
|
526
|
+
},
|
527
|
+
"outputs": [
|
528
|
+
{
|
529
|
+
"data": {
|
530
|
+
"image/svg+xml": [
|
531
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
532
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
533
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
534
|
+
"<svg \n",
|
535
|
+
" width=\"600\" height=\"480\" \n",
|
536
|
+
" viewBox=\"0 0 600 480\"\n",
|
537
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
538
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
539
|
+
">\n",
|
540
|
+
"\n",
|
541
|
+
"<title>Gnuplot</title>\n",
|
542
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
543
|
+
"\n",
|
544
|
+
"<g id=\"gnuplot_canvas\">\n",
|
545
|
+
"\n",
|
546
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
547
|
+
"<defs>\n",
|
548
|
+
"\n",
|
549
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
550
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
551
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
552
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
553
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
554
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
555
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
556
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
557
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
558
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
559
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
560
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
561
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
562
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
563
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
564
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
565
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
566
|
+
"\t</filter>\n",
|
567
|
+
"</defs>\n",
|
568
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
569
|
+
"</g>\n",
|
570
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
571
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
572
|
+
"\t\t<text>-2.5</text>\n",
|
573
|
+
"\t</g>\n",
|
574
|
+
"\t<path stroke='black' d='M53.9,390.6 L62.9,390.6 M575.0,390.6 L566.0,390.6 '/>\t<g transform=\"translate(45.6,395.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
575
|
+
"\t\t<text>-2</text>\n",
|
576
|
+
"\t</g>\n",
|
577
|
+
"\t<path stroke='black' d='M53.9,337.2 L62.9,337.2 M575.0,337.2 L566.0,337.2 '/>\t<g transform=\"translate(45.6,341.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
578
|
+
"\t\t<text>-1.5</text>\n",
|
579
|
+
"\t</g>\n",
|
580
|
+
"\t<path stroke='black' d='M53.9,283.8 L62.9,283.8 M575.0,283.8 L566.0,283.8 '/>\t<g transform=\"translate(45.6,288.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
581
|
+
"\t\t<text>-1</text>\n",
|
582
|
+
"\t</g>\n",
|
583
|
+
"\t<path stroke='black' d='M53.9,230.3 L62.9,230.3 M575.0,230.3 L566.0,230.3 '/>\t<g transform=\"translate(45.6,234.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
584
|
+
"\t\t<text>-0.5</text>\n",
|
585
|
+
"\t</g>\n",
|
586
|
+
"\t<path stroke='black' d='M53.9,176.9 L62.9,176.9 M575.0,176.9 L566.0,176.9 '/>\t<g transform=\"translate(45.6,181.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
587
|
+
"\t\t<text> 0</text>\n",
|
588
|
+
"\t</g>\n",
|
589
|
+
"\t<path stroke='black' d='M53.9,123.5 L62.9,123.5 M575.0,123.5 L566.0,123.5 '/>\t<g transform=\"translate(45.6,128.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
590
|
+
"\t\t<text> 0.5</text>\n",
|
591
|
+
"\t</g>\n",
|
592
|
+
"\t<path stroke='black' d='M53.9,70.1 L62.9,70.1 M575.0,70.1 L566.0,70.1 '/>\t<g transform=\"translate(45.6,74.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
593
|
+
"\t\t<text> 1</text>\n",
|
594
|
+
"\t</g>\n",
|
595
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
596
|
+
"\t\t<text> 1.5</text>\n",
|
597
|
+
"\t</g>\n",
|
598
|
+
"\t<path stroke='black' d='M53.9,444.0 L53.9,435.0 M53.9,16.7 L53.9,25.7 '/>\t<g transform=\"translate(53.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
599
|
+
"\t\t<text>-30</text>\n",
|
600
|
+
"\t</g>\n",
|
601
|
+
"\t<path stroke='black' d='M158.1,444.0 L158.1,435.0 M158.1,16.7 L158.1,25.7 '/>\t<g transform=\"translate(158.1,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
602
|
+
"\t\t<text>-20</text>\n",
|
603
|
+
"\t</g>\n",
|
604
|
+
"\t<path stroke='black' d='M262.3,444.0 L262.3,435.0 M262.3,16.7 L262.3,25.7 '/>\t<g transform=\"translate(262.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
605
|
+
"\t\t<text>-10</text>\n",
|
606
|
+
"\t</g>\n",
|
607
|
+
"\t<path stroke='black' d='M366.6,444.0 L366.6,435.0 M366.6,16.7 L366.6,25.7 '/>\t<g transform=\"translate(366.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
608
|
+
"\t\t<text> 0</text>\n",
|
609
|
+
"\t</g>\n",
|
610
|
+
"\t<path stroke='black' d='M470.8,444.0 L470.8,435.0 M470.8,16.7 L470.8,25.7 '/>\t<g transform=\"translate(470.8,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
611
|
+
"\t\t<text> 10</text>\n",
|
612
|
+
"\t</g>\n",
|
613
|
+
"\t<path stroke='black' d='M575.0,444.0 L575.0,435.0 M575.0,16.7 L575.0,25.7 '/>\t<g transform=\"translate(575.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
614
|
+
"\t\t<text> 20</text>\n",
|
615
|
+
"\t</g>\n",
|
616
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
617
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
618
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
619
|
+
"\t<g transform=\"translate(507.9,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
620
|
+
"\t\t<text>besj0(x)*0.12e1</text>\n",
|
621
|
+
"\t</g>\n",
|
622
|
+
"\t<path d='M516.2,34.7 L558.4,34.7 M53.9,176.9 L53.9,188.0 M59.2,176.9 L59.2,194.0 M64.4,176.9 L64.4,195.9 \n",
|
623
|
+
"\t\tM69.7,176.9 L69.7,193.0 M75.0,176.9 L75.0,186.0 M80.2,176.9 L80.2,176.6 M85.5,176.9 L85.5,167.1 \n",
|
624
|
+
"\t\tM90.7,176.9 L90.7,159.9 M96.0,176.9 L96.0,156.9 M101.3,176.9 L101.3,158.9 M106.5,176.9 L106.5,165.4 \n",
|
625
|
+
"\t\tM111.8,176.9 L111.8,175.0 M117.1,176.9 L117.1,185.3 M122.3,176.9 L122.3,193.7 M127.6,176.9 L127.6,198.1 \n",
|
626
|
+
"\t\tM132.9,176.9 L132.9,197.2 M138.1,176.9 L138.1,191.1 M143.4,176.9 L143.4,181.4 M148.6,176.9 L148.6,170.3 \n",
|
627
|
+
"\t\tM153.9,176.9 L153.9,160.6 M159.2,176.9 L159.2,154.8 M164.4,176.9 L164.4,154.4 M169.7,176.9 L169.7,159.8 \n",
|
628
|
+
"\t\tM175.0,176.9 L175.0,169.6 M180.2,176.9 L180.2,181.6 M185.5,176.9 L185.5,192.7 M190.8,176.9 L190.8,200.2 \n",
|
629
|
+
"\t\tM196.0,176.9 L196.0,202.0 M201.3,176.9 L201.3,197.5 M206.5,176.9 L206.5,187.6 M211.8,176.9 L211.8,174.8 \n",
|
630
|
+
"\t\tM217.1,176.9 L217.1,162.0 M222.3,176.9 L222.3,152.5 M227.6,176.9 L227.6,148.9 M232.9,176.9 L232.9,152.4 \n",
|
631
|
+
"\t\tM238.1,176.9 L238.1,162.2 M243.4,176.9 L243.4,176.1 M248.7,176.9 L248.7,190.9 M253.9,176.9 L253.9,202.8 \n",
|
632
|
+
"\t\tM259.2,176.9 L259.2,208.7 M264.4,176.9 L264.4,206.7 M269.7,176.9 L269.7,197.0 M275.0,176.9 L275.0,181.6 \n",
|
633
|
+
"\t\tM280.2,176.9 L280.2,164.0 M285.5,176.9 L285.5,148.8 M290.8,176.9 L290.8,139.7 M296.0,176.9 L296.0,139.7 \n",
|
634
|
+
"\t\tM301.3,176.9 L301.3,149.3 M306.6,176.9 L306.6,166.9 M311.8,176.9 L311.8,188.8 M317.1,176.9 L317.1,209.7 \n",
|
635
|
+
"\t\tM322.3,176.9 L322.3,224.4 M327.6,176.9 L327.6,228.3 M332.9,176.9 L332.9,219.0 M338.1,176.9 L338.1,196.7 \n",
|
636
|
+
"\t\tM343.4,176.9 L343.4,164.4 M348.7,176.9 L348.7,127.2 M353.9,176.9 L353.9,91.7 M359.2,176.9 L359.2,64.3 \n",
|
637
|
+
"\t\tM364.5,176.9 L364.5,50.1 M369.7,176.9 L369.7,51.7 M375.0,176.9 L375.0,68.8 M380.2,176.9 L380.2,98.3 \n",
|
638
|
+
"\t\tM385.5,176.9 L385.5,134.7 M390.8,176.9 L390.8,171.4 M396.0,176.9 L396.0,202.1 M401.3,176.9 L401.3,222.0 \n",
|
639
|
+
"\t\tM406.6,176.9 L406.6,228.6 M411.8,176.9 L411.8,222.2 M417.1,176.9 L417.1,205.9 M422.4,176.9 L422.4,184.3 \n",
|
640
|
+
"\t\tM427.6,176.9 L427.6,162.9 M432.9,176.9 L432.9,146.6 M438.1,176.9 L438.1,138.9 M443.4,176.9 L443.4,140.9 \n",
|
641
|
+
"\t\tM448.7,176.9 L448.7,151.4 M453.9,176.9 L453.9,167.5 M459.2,176.9 L459.2,184.9 M464.5,176.9 L464.5,199.5 \n",
|
642
|
+
"\t\tM469.7,176.9 L469.7,207.7 M475.0,176.9 L475.0,208.1 M480.3,176.9 L480.3,200.9 M485.5,176.9 L485.5,188.1 \n",
|
643
|
+
"\t\tM490.8,176.9 L490.8,173.2 M496.0,176.9 L496.0,159.8 M501.3,176.9 L501.3,151.1 M506.6,176.9 L506.6,149.1 \n",
|
644
|
+
"\t\tM511.8,176.9 L511.8,154.0 M517.1,176.9 L517.1,164.4 M522.4,176.9 L522.4,177.4 M527.6,176.9 L527.6,189.9 \n",
|
645
|
+
"\t\tM532.9,176.9 L532.9,198.9 M538.2,176.9 L538.2,202.1 M543.4,176.9 L543.4,199.1 M548.7,176.9 L548.7,190.7 \n",
|
646
|
+
"\t\tM553.9,176.9 L553.9,179.1 M559.2,176.9 L559.2,167.4 M564.5,176.9 L564.5,158.3 M569.7,176.9 L569.7,154.0 \n",
|
647
|
+
"\t\tM575.0,176.9 L575.0,155.5 '/></g>\n",
|
648
|
+
"\t</g>\n",
|
649
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
650
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
651
|
+
"\t<g transform=\"translate(507.9,57.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
652
|
+
"\t\t<text>(x**besj0(x))-2.5</text>\n",
|
653
|
+
"\t</g>\n",
|
654
|
+
"\t<use xlink:href='#gpPt1' transform='translate(369.7,410.7) scale(4.50)'/>\n",
|
655
|
+
"\t<use xlink:href='#gpPt1' transform='translate(375.0,354.7) scale(4.50)'/>\n",
|
656
|
+
"\t<use xlink:href='#gpPt1' transform='translate(380.2,317.8) scale(4.50)'/>\n",
|
657
|
+
"\t<use xlink:href='#gpPt1' transform='translate(385.5,313.9) scale(4.50)'/>\n",
|
658
|
+
"\t<use xlink:href='#gpPt1' transform='translate(390.8,333.2) scale(4.50)'/>\n",
|
659
|
+
"\t<use xlink:href='#gpPt1' transform='translate(396.0,356.9) scale(4.50)'/>\n",
|
660
|
+
"\t<use xlink:href='#gpPt1' transform='translate(401.3,374.0) scale(4.50)'/>\n",
|
661
|
+
"\t<use xlink:href='#gpPt1' transform='translate(406.6,381.9) scale(4.50)'/>\n",
|
662
|
+
"\t<use xlink:href='#gpPt1' transform='translate(411.8,380.4) scale(4.50)'/>\n",
|
663
|
+
"\t<use xlink:href='#gpPt1' transform='translate(417.1,369.2) scale(4.50)'/>\n",
|
664
|
+
"\t<use xlink:href='#gpPt1' transform='translate(422.4,347.0) scale(4.50)'/>\n",
|
665
|
+
"\t<use xlink:href='#gpPt1' transform='translate(427.6,314.3) scale(4.50)'/>\n",
|
666
|
+
"\t<use xlink:href='#gpPt1' transform='translate(432.9,278.5) scale(4.50)'/>\n",
|
667
|
+
"\t<use xlink:href='#gpPt1' transform='translate(438.1,254.7) scale(4.50)'/>\n",
|
668
|
+
"\t<use xlink:href='#gpPt1' transform='translate(443.4,256.6) scale(4.50)'/>\n",
|
669
|
+
"\t<use xlink:href='#gpPt1' transform='translate(448.7,282.9) scale(4.50)'/>\n",
|
670
|
+
"\t<use xlink:href='#gpPt1' transform='translate(453.9,319.1) scale(4.50)'/>\n",
|
671
|
+
"\t<use xlink:href='#gpPt1' transform='translate(459.2,350.8) scale(4.50)'/>\n",
|
672
|
+
"\t<use xlink:href='#gpPt1' transform='translate(464.5,371.9) scale(4.50)'/>\n",
|
673
|
+
"\t<use xlink:href='#gpPt1' transform='translate(469.7,382.4) scale(4.50)'/>\n",
|
674
|
+
"\t<use xlink:href='#gpPt1' transform='translate(475.0,383.6) scale(4.50)'/>\n",
|
675
|
+
"\t<use xlink:href='#gpPt1' transform='translate(480.3,375.6) scale(4.50)'/>\n",
|
676
|
+
"\t<use xlink:href='#gpPt1' transform='translate(485.5,357.6) scale(4.50)'/>\n",
|
677
|
+
"\t<use xlink:href='#gpPt1' transform='translate(490.8,329.1) scale(4.50)'/>\n",
|
678
|
+
"\t<use xlink:href='#gpPt1' transform='translate(496.0,294.3) scale(4.50)'/>\n",
|
679
|
+
"\t<use xlink:href='#gpPt1' transform='translate(501.3,265.1) scale(4.50)'/>\n",
|
680
|
+
"\t<use xlink:href='#gpPt1' transform='translate(506.6,256.3) scale(4.50)'/>\n",
|
681
|
+
"\t<use xlink:href='#gpPt1' transform='translate(511.8,272.9) scale(4.50)'/>\n",
|
682
|
+
"\t<use xlink:href='#gpPt1' transform='translate(517.1,305.2) scale(4.50)'/>\n",
|
683
|
+
"\t<use xlink:href='#gpPt1' transform='translate(522.4,338.3) scale(4.50)'/>\n",
|
684
|
+
"\t<use xlink:href='#gpPt1' transform='translate(527.6,363.1) scale(4.50)'/>\n",
|
685
|
+
"\t<use xlink:href='#gpPt1' transform='translate(532.9,377.5) scale(4.50)'/>\n",
|
686
|
+
"\t<use xlink:href='#gpPt1' transform='translate(538.2,382.4) scale(4.50)'/>\n",
|
687
|
+
"\t<use xlink:href='#gpPt1' transform='translate(543.4,378.5) scale(4.50)'/>\n",
|
688
|
+
"\t<use xlink:href='#gpPt1' transform='translate(548.7,365.4) scale(4.50)'/>\n",
|
689
|
+
"\t<use xlink:href='#gpPt1' transform='translate(553.9,342.3) scale(4.50)'/>\n",
|
690
|
+
"\t<use xlink:href='#gpPt1' transform='translate(559.2,311.2) scale(4.50)'/>\n",
|
691
|
+
"\t<use xlink:href='#gpPt1' transform='translate(564.5,280.0) scale(4.50)'/>\n",
|
692
|
+
"\t<use xlink:href='#gpPt1' transform='translate(569.7,262.3) scale(4.50)'/>\n",
|
693
|
+
"\t<use xlink:href='#gpPt1' transform='translate(575.0,267.8) scale(4.50)'/>\n",
|
694
|
+
"\t<use xlink:href='#gpPt1' transform='translate(537.3,52.7) scale(4.50)'/>\n",
|
695
|
+
"</g>\n",
|
696
|
+
"\t</g>\n",
|
697
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
698
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
699
|
+
"</g>\n",
|
700
|
+
"</svg>\n",
|
701
|
+
"\n"
|
702
|
+
],
|
703
|
+
"text/plain": [
|
704
|
+
"#<Numo::Gnuplot::NotePlot:0x000000020e9e88 @block=#<Proc:0x000000020e9e38@<main>:2>>"
|
705
|
+
]
|
706
|
+
},
|
707
|
+
"execution_count": 5,
|
708
|
+
"metadata": {},
|
709
|
+
"output_type": "execute_result"
|
710
|
+
}
|
711
|
+
],
|
712
|
+
"source": [
|
713
|
+
"# plot [-30:20] besj0(x)*0.12e1 with impulses, (x**besj0(x))-2.5 with points\n",
|
714
|
+
"\n",
|
715
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
716
|
+
" plot -30..20,\n",
|
717
|
+
" [\"besj0(x)*0.12e1\", with:\"impulses\"],\n",
|
718
|
+
" [\"(x**besj0(x))-2.5\", with:\"points\"]\n",
|
719
|
+
"end"
|
720
|
+
]
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"cell_type": "code",
|
724
|
+
"execution_count": 6,
|
725
|
+
"metadata": {
|
726
|
+
"collapsed": false
|
727
|
+
},
|
728
|
+
"outputs": [
|
729
|
+
{
|
730
|
+
"data": {
|
731
|
+
"image/svg+xml": [
|
732
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
733
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
734
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
735
|
+
"<svg \n",
|
736
|
+
" width=\"600\" height=\"480\" \n",
|
737
|
+
" viewBox=\"0 0 600 480\"\n",
|
738
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
739
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
740
|
+
">\n",
|
741
|
+
"\n",
|
742
|
+
"<title>Gnuplot</title>\n",
|
743
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
744
|
+
"\n",
|
745
|
+
"<g id=\"gnuplot_canvas\">\n",
|
746
|
+
"\n",
|
747
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
748
|
+
"<defs>\n",
|
749
|
+
"\n",
|
750
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
751
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
752
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
753
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
754
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
755
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
756
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
757
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
758
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
759
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
760
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
761
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
762
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
763
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
764
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
765
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
766
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
767
|
+
"\t</filter>\n",
|
768
|
+
"</defs>\n",
|
769
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
770
|
+
"</g>\n",
|
771
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
772
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
773
|
+
"\t\t<text>-1</text>\n",
|
774
|
+
"\t</g>\n",
|
775
|
+
"\t<path stroke='black' d='M53.9,405.2 L62.9,405.2 M575.0,405.2 L566.0,405.2 '/>\t<g transform=\"translate(45.6,409.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
776
|
+
"\t\t<text>-0.5</text>\n",
|
777
|
+
"\t</g>\n",
|
778
|
+
"\t<path stroke='black' d='M53.9,366.3 L62.9,366.3 M575.0,366.3 L566.0,366.3 '/>\t<g transform=\"translate(45.6,370.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
779
|
+
"\t\t<text> 0</text>\n",
|
780
|
+
"\t</g>\n",
|
781
|
+
"\t<path stroke='black' d='M53.9,327.5 L62.9,327.5 M575.0,327.5 L566.0,327.5 '/>\t<g transform=\"translate(45.6,332.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
782
|
+
"\t\t<text> 0.5</text>\n",
|
783
|
+
"\t</g>\n",
|
784
|
+
"\t<path stroke='black' d='M53.9,288.6 L62.9,288.6 M575.0,288.6 L566.0,288.6 '/>\t<g transform=\"translate(45.6,293.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
785
|
+
"\t\t<text> 1</text>\n",
|
786
|
+
"\t</g>\n",
|
787
|
+
"\t<path stroke='black' d='M53.9,249.8 L62.9,249.8 M575.0,249.8 L566.0,249.8 '/>\t<g transform=\"translate(45.6,254.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
788
|
+
"\t\t<text> 1.5</text>\n",
|
789
|
+
"\t</g>\n",
|
790
|
+
"\t<path stroke='black' d='M53.9,210.9 L62.9,210.9 M575.0,210.9 L566.0,210.9 '/>\t<g transform=\"translate(45.6,215.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
791
|
+
"\t\t<text> 2</text>\n",
|
792
|
+
"\t</g>\n",
|
793
|
+
"\t<path stroke='black' d='M53.9,172.1 L62.9,172.1 M575.0,172.1 L566.0,172.1 '/>\t<g transform=\"translate(45.6,176.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
794
|
+
"\t\t<text> 2.5</text>\n",
|
795
|
+
"\t</g>\n",
|
796
|
+
"\t<path stroke='black' d='M53.9,133.2 L62.9,133.2 M575.0,133.2 L566.0,133.2 '/>\t<g transform=\"translate(45.6,137.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
797
|
+
"\t\t<text> 3</text>\n",
|
798
|
+
"\t</g>\n",
|
799
|
+
"\t<path stroke='black' d='M53.9,94.4 L62.9,94.4 M575.0,94.4 L566.0,94.4 '/>\t<g transform=\"translate(45.6,98.9)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
800
|
+
"\t\t<text> 3.5</text>\n",
|
801
|
+
"\t</g>\n",
|
802
|
+
"\t<path stroke='black' d='M53.9,55.5 L62.9,55.5 M575.0,55.5 L566.0,55.5 '/>\t<g transform=\"translate(45.6,60.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
803
|
+
"\t\t<text> 4</text>\n",
|
804
|
+
"\t</g>\n",
|
805
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
806
|
+
"\t\t<text> 4.5</text>\n",
|
807
|
+
"\t</g>\n",
|
808
|
+
"\t<path stroke='black' d='M53.9,444.0 L53.9,435.0 M53.9,16.7 L53.9,25.7 '/>\t<g transform=\"translate(53.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
809
|
+
"\t\t<text>-10</text>\n",
|
810
|
+
"\t</g>\n",
|
811
|
+
"\t<path stroke='black' d='M184.2,444.0 L184.2,435.0 M184.2,16.7 L184.2,25.7 '/>\t<g transform=\"translate(184.2,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
812
|
+
"\t\t<text>-5</text>\n",
|
813
|
+
"\t</g>\n",
|
814
|
+
"\t<path stroke='black' d='M314.5,444.0 L314.5,435.0 M314.5,16.7 L314.5,25.7 '/>\t<g transform=\"translate(314.5,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
815
|
+
"\t\t<text> 0</text>\n",
|
816
|
+
"\t</g>\n",
|
817
|
+
"\t<path stroke='black' d='M444.7,444.0 L444.7,435.0 M444.7,16.7 L444.7,25.7 '/>\t<g transform=\"translate(444.7,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
818
|
+
"\t\t<text> 5</text>\n",
|
819
|
+
"\t</g>\n",
|
820
|
+
"\t<path stroke='black' d='M575.0,444.0 L575.0,435.0 M575.0,16.7 L575.0,25.7 '/>\t<g transform=\"translate(575.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
821
|
+
"\t\t<text> 10</text>\n",
|
822
|
+
"\t</g>\n",
|
823
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
824
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
825
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
826
|
+
"\t<g transform=\"translate(507.9,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
827
|
+
"\t\t<text>real(sin(x)**besj0(x))</text>\n",
|
828
|
+
"\t</g>\n",
|
829
|
+
"\t<path d='M516.2,34.7 L558.4,34.7 M53.9,276.1 L55.2,274.4 L56.5,272.5 L57.8,270.5 L59.1,268.2 L60.4,265.6 \n",
|
830
|
+
"\t\tL61.7,262.5 L63.0,258.9 L64.3,254.3 L65.7,247.9 L67.0,237.6 L68.3,211.0 L69.6,240.8 L70.9,263.0 \n",
|
831
|
+
"\t\tL72.2,271.6 L73.5,276.5 L74.8,279.7 L76.1,281.9 L77.4,283.5 L78.7,284.7 L80.0,285.5 L81.3,286.2 \n",
|
832
|
+
"\t\tL82.6,286.8 L83.9,287.2 L85.2,287.6 L86.6,287.9 L87.9,288.3 L89.2,288.7 L90.5,289.1 L91.8,289.5 \n",
|
833
|
+
"\t\tL93.1,290.1 L94.4,290.6 L95.7,291.3 L97.0,292.1 L98.3,292.9 L99.6,293.9 L100.9,294.9 L102.2,296.0 \n",
|
834
|
+
"\t\tL103.5,297.2 L104.8,298.5 L106.1,299.9 L107.4,301.3 L108.8,302.8 L110.1,304.4 L111.4,305.9 L112.7,307.5 \n",
|
835
|
+
"\t\tL114.0,309.1 L115.3,310.7 L116.6,312.3 L117.9,313.8 L119.2,315.3 L120.5,316.8 L121.8,318.2 L123.1,319.5 \n",
|
836
|
+
"\t\tL124.4,320.7 L125.7,321.8 L127.0,322.9 L128.3,323.8 L129.6,324.7 L131.0,325.5 L132.3,326.2 L133.6,326.8 \n",
|
837
|
+
"\t\tL134.9,327.3 L136.2,327.7 L137.5,328.1 L138.8,328.5 L140.1,328.8 L141.4,329.2 L142.7,329.6 L144.0,330.1 \n",
|
838
|
+
"\t\tL145.3,330.8 L146.6,331.8 L147.9,333.4 L149.2,336.4 L150.5,346.2 L151.9,326.4 L153.2,318.0 L154.5,312.4 \n",
|
839
|
+
"\t\tL155.8,308.1 L157.1,304.6 L158.4,301.6 L159.7,299.1 L161.0,297.0 L162.3,295.2 L163.6,293.6 L164.9,292.2 \n",
|
840
|
+
"\t\tL166.2,291.1 L167.5,290.2 L168.8,289.4 L170.1,288.8 L171.4,288.3 L172.7,288.0 L174.1,287.7 L175.4,287.6 \n",
|
841
|
+
"\t\tL176.7,287.5 L178.0,287.5 L179.3,287.6 L180.6,287.7 L181.9,287.8 L183.2,287.9 L184.5,288.1 L185.8,288.2 \n",
|
842
|
+
"\t\tL187.1,288.4 L188.4,288.5 L189.7,288.6 L191.0,288.6 L192.3,288.6 L193.6,288.6 L194.9,288.4 L196.3,288.2 \n",
|
843
|
+
"\t\tL197.6,288.0 L198.9,287.6 L200.2,287.2 L201.5,286.6 L202.8,285.9 L204.1,285.1 L205.4,284.2 L206.7,283.2 \n",
|
844
|
+
"\t\tL208.0,281.9 L209.3,280.6 L210.6,279.0 L211.9,277.3 L213.2,275.4 L214.5,273.3 L215.8,270.9 L217.2,268.2 \n",
|
845
|
+
"\t\tL218.5,265.2 L219.8,261.9 L221.1,258.1 L222.4,253.9 L223.7,248.9 L225.0,243.1 L226.3,236.1 L227.6,227.2 \n",
|
846
|
+
"\t\tL228.9,215.0 L230.2,195.7 L231.5,153.9 L232.8,177.0 L234.1,257.6 L235.4,272.9 L236.7,279.7 L238.0,283.3 \n",
|
847
|
+
"\t\tL239.4,285.3 L240.7,286.4 L242.0,287.0 L243.3,287.2 L244.6,287.3 L245.9,287.3 L247.2,287.3 L248.5,287.4 \n",
|
848
|
+
"\t\tL249.8,287.7 L251.1,288.2 L252.4,289.0 L253.7,290.2 L255.0,291.7 L256.3,293.6 L257.6,295.9 L258.9,298.7 \n",
|
849
|
+
"\t\tL260.3,302.0 L261.6,305.8 L262.9,310.1 L264.2,314.8 L265.5,320.1 L266.8,325.7 L268.1,331.7 L269.4,338.1 \n",
|
850
|
+
"\t\tL270.7,344.7 L272.0,351.5 L273.3,358.4 L274.6,365.3 L275.9,372.1 L277.2,378.7 L278.5,385.1 L279.8,391.1 \n",
|
851
|
+
"\t\tL281.1,396.6 L282.5,401.7 L283.8,406.1 L285.1,410.0 L286.4,413.2 L287.7,415.6 L289.0,417.4 L290.3,418.5 \n",
|
852
|
+
"\t\tL291.6,418.9 L292.9,418.6 L294.2,417.8 L295.5,416.4 L296.8,414.5 L298.1,412.1 L299.4,409.4 L300.7,406.3 \n",
|
853
|
+
"\t\tL302.0,402.9 L303.3,399.4 L304.7,395.7 L306.0,391.8 L307.3,387.9 L308.6,384.0 L309.9,380.0 L311.2,376.1 \n",
|
854
|
+
"\t\tL312.5,372.2 L313.8,368.3 L315.1,364.4 L316.4,360.5 L317.7,356.5 L319.0,352.6 L320.3,348.6 L321.6,344.6 \n",
|
855
|
+
"\t\tL322.9,340.7 L324.2,336.8 L325.6,332.9 L326.9,329.1 L328.2,325.4 L329.5,321.8 L330.8,318.4 L332.1,315.1 \n",
|
856
|
+
"\t\tL333.4,311.9 L334.7,309.0 L336.0,306.2 L337.3,303.6 L338.6,301.3 L339.9,299.1 L341.2,297.2 L342.5,295.5 \n",
|
857
|
+
"\t\tL343.8,294.0 L345.1,292.7 L346.4,291.6 L347.8,290.7 L349.1,290.0 L350.4,289.5 L351.7,289.1 L353.0,288.8 \n",
|
858
|
+
"\t\tL354.3,288.7 L355.6,288.6 L356.9,288.7 L358.2,288.8 L359.5,289.0 L360.8,289.2 L362.1,289.5 L363.4,289.7 \n",
|
859
|
+
"\t\tL364.7,290.0 L366.0,290.2 L367.3,290.4 L368.6,290.5 L370.0,290.5 L371.3,290.5 L372.6,290.3 L373.9,290.0 \n",
|
860
|
+
"\t\tL375.2,289.6 L376.5,289.0 L377.8,288.2 L379.1,287.1 L380.4,285.8 L381.7,284.2 L383.0,282.1 L384.3,279.7 \n",
|
861
|
+
"\t\tL385.6,276.6 L386.9,272.8 L388.2,268.0 L389.5,261.9 L390.9,253.7 L392.2,242.3 L393.5,224.6 L394.8,191.2 \n",
|
862
|
+
"\t\tL396.1,41.8 L397.4,250.1 L398.7,278.8 L400.0,293.6 L401.3,303.7 L402.6,311.3 L403.9,317.4 L405.2,322.4 \n",
|
863
|
+
"\t\tL406.5,326.4 L407.8,329.7 L409.1,332.4 L410.4,334.6 L411.7,336.2 L413.1,337.5 L414.4,338.3 L415.7,338.8 \n",
|
864
|
+
"\t\tL417.0,339.0 L418.3,338.8 L419.6,338.4 L420.9,337.8 L422.2,336.9 L423.5,335.7 L424.8,334.4 L426.1,332.9 \n",
|
865
|
+
"\t\tL427.4,331.2 L428.7,329.3 L430.0,327.3 L431.3,325.1 L432.6,322.8 L434.0,320.5 L435.3,318.0 L436.6,315.5 \n",
|
866
|
+
"\t\tL437.9,312.9 L439.2,310.4 L440.5,307.8 L441.8,305.3 L443.1,302.8 L444.4,300.5 L445.7,298.2 L447.0,296.2 \n",
|
867
|
+
"\t\tL448.3,294.3 L449.6,292.6 L450.9,291.2 L452.2,290.0 L453.5,289.1 L454.8,288.5 L456.2,288.3 L457.5,288.4 \n",
|
868
|
+
"\t\tL458.8,288.8 L460.1,289.6 L461.4,290.8 L462.7,292.3 L464.0,294.2 L465.3,296.4 L466.6,298.9 L467.9,301.8 \n",
|
869
|
+
"\t\tL469.2,305.0 L470.5,308.5 L471.8,312.4 L473.1,316.7 L474.4,321.5 L475.7,327.2 L477.0,334.8 L478.4,340.0 \n",
|
870
|
+
"\t\tL479.7,326.2 L481.0,321.0 L482.3,317.4 L483.6,314.7 L484.9,312.3 L486.2,310.2 L487.5,308.3 L488.8,306.5 \n",
|
871
|
+
"\t\tL490.1,304.9 L491.4,303.4 L492.7,301.9 L494.0,300.5 L495.3,299.2 L496.6,298.0 L497.9,296.8 L499.3,295.8 \n",
|
872
|
+
"\t\tL500.6,294.8 L501.9,293.9 L503.2,293.0 L504.5,292.3 L505.8,291.6 L507.1,291.0 L508.4,290.4 L509.7,290.0 \n",
|
873
|
+
"\t\tL511.0,289.6 L512.3,289.3 L513.6,289.0 L514.9,288.9 L516.2,288.7 L517.5,288.6 L518.8,288.6 L520.1,288.6 \n",
|
874
|
+
"\t\tL521.5,288.7 L522.8,288.8 L524.1,288.8 L525.4,289.0 L526.7,289.1 L528.0,289.2 L529.3,289.3 L530.6,289.4 \n",
|
875
|
+
"\t\tL531.9,289.4 L533.2,289.5 L534.5,289.4 L535.8,289.4 L537.1,289.2 L538.4,289.0 L539.7,288.7 L541.0,288.2 \n",
|
876
|
+
"\t\tL542.3,287.7 L543.7,287.0 L545.0,286.2 L546.3,285.1 L547.6,283.8 L548.9,282.2 L550.2,280.3 L551.5,277.9 \n",
|
877
|
+
"\t\tL552.8,274.9 L554.1,271.1 L555.4,266.0 L556.7,258.7 L558.0,246.9 L559.3,218.6 L560.6,236.6 L561.9,260.7 \n",
|
878
|
+
"\t\tL563.2,270.9 L564.6,277.5 L565.9,282.6 L567.2,286.7 L568.5,290.2 L569.8,293.2 L571.1,295.8 L572.4,298.0 \n",
|
879
|
+
"\t\tL573.7,300.0 L575.0,301.7 '/></g>\n",
|
880
|
+
"\t</g>\n",
|
881
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
882
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
883
|
+
"</g>\n",
|
884
|
+
"</svg>\n",
|
885
|
+
"\n"
|
886
|
+
],
|
887
|
+
"text/plain": [
|
888
|
+
"#<Numo::Gnuplot::NotePlot:0x000000020a2e70 @block=#<Proc:0x000000020a2e20@<main>:3>>"
|
889
|
+
]
|
890
|
+
},
|
891
|
+
"execution_count": 6,
|
892
|
+
"metadata": {},
|
893
|
+
"output_type": "execute_result"
|
894
|
+
}
|
895
|
+
],
|
896
|
+
"source": [
|
897
|
+
"# set samples 400\n",
|
898
|
+
"# plot [-10:10] real(sin(x)**besj0(x))\n",
|
899
|
+
"\n",
|
900
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
901
|
+
" set samples:400\n",
|
902
|
+
" plot -10..10,\n",
|
903
|
+
" \"real(sin(x)**besj0(x))\"\n",
|
904
|
+
"end"
|
905
|
+
]
|
906
|
+
},
|
907
|
+
{
|
908
|
+
"cell_type": "code",
|
909
|
+
"execution_count": 7,
|
910
|
+
"metadata": {
|
911
|
+
"collapsed": false
|
912
|
+
},
|
913
|
+
"outputs": [
|
914
|
+
{
|
915
|
+
"data": {
|
916
|
+
"image/svg+xml": [
|
917
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
918
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
919
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
920
|
+
"<svg \n",
|
921
|
+
" width=\"600\" height=\"480\" \n",
|
922
|
+
" viewBox=\"0 0 600 480\"\n",
|
923
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
924
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
925
|
+
">\n",
|
926
|
+
"\n",
|
927
|
+
"<title>Gnuplot</title>\n",
|
928
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
929
|
+
"\n",
|
930
|
+
"<g id=\"gnuplot_canvas\">\n",
|
931
|
+
"\n",
|
932
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
933
|
+
"<defs>\n",
|
934
|
+
"\n",
|
935
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
936
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
937
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
938
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
939
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
940
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
941
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
942
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
943
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
944
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
945
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
946
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
947
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
948
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
949
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
950
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
951
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
952
|
+
"\t</filter>\n",
|
953
|
+
"</defs>\n",
|
954
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
955
|
+
"</g>\n",
|
956
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
957
|
+
"\t<path stroke='black' d='M37.3,368.9 L46.3,368.9 M575.0,368.9 L566.0,368.9 '/>\t<g transform=\"translate(29.0,373.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
958
|
+
"\t\t<text>-4</text>\n",
|
959
|
+
"\t</g>\n",
|
960
|
+
"\t<path stroke='black' d='M37.3,290.6 L46.3,290.6 M575.0,290.6 L566.0,290.6 '/>\t<g transform=\"translate(29.0,295.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
961
|
+
"\t\t<text>-2</text>\n",
|
962
|
+
"\t</g>\n",
|
963
|
+
"\t<path stroke='black' d='M37.3,212.3 L46.3,212.3 M575.0,212.3 L566.0,212.3 '/>\t<g transform=\"translate(29.0,216.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
964
|
+
"\t\t<text> 0</text>\n",
|
965
|
+
"\t</g>\n",
|
966
|
+
"\t<path stroke='black' d='M37.3,134.1 L46.3,134.1 M575.0,134.1 L566.0,134.1 '/>\t<g transform=\"translate(29.0,138.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
967
|
+
"\t\t<text> 2</text>\n",
|
968
|
+
"\t</g>\n",
|
969
|
+
"\t<path stroke='black' d='M37.3,55.8 L46.3,55.8 M575.0,55.8 L566.0,55.8 '/>\t<g transform=\"translate(29.0,60.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
970
|
+
"\t\t<text> 4</text>\n",
|
971
|
+
"\t</g>\n",
|
972
|
+
"\t<path stroke='black' d='M49.4,408.0 L49.4,399.0 M49.4,16.7 L49.4,25.7 '/>\t<g transform=\"translate(49.4,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
973
|
+
"\t\t<text>-15</text>\n",
|
974
|
+
"\t</g>\n",
|
975
|
+
"\t<path stroke='black' d='M135.0,408.0 L135.0,399.0 M135.0,16.7 L135.0,25.7 '/>\t<g transform=\"translate(135.0,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
976
|
+
"\t\t<text>-10</text>\n",
|
977
|
+
"\t</g>\n",
|
978
|
+
"\t<path stroke='black' d='M220.6,408.0 L220.6,399.0 M220.6,16.7 L220.6,25.7 '/>\t<g transform=\"translate(220.6,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
979
|
+
"\t\t<text>-5</text>\n",
|
980
|
+
"\t</g>\n",
|
981
|
+
"\t<path stroke='black' d='M306.2,408.0 L306.2,399.0 M306.2,16.7 L306.2,25.7 '/>\t<g transform=\"translate(306.2,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
982
|
+
"\t\t<text> 0</text>\n",
|
983
|
+
"\t</g>\n",
|
984
|
+
"\t<path stroke='black' d='M391.7,408.0 L391.7,399.0 M391.7,16.7 L391.7,25.7 '/>\t<g transform=\"translate(391.7,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
985
|
+
"\t\t<text> 5</text>\n",
|
986
|
+
"\t</g>\n",
|
987
|
+
"\t<path stroke='black' d='M477.3,408.0 L477.3,399.0 M477.3,16.7 L477.3,25.7 '/>\t<g transform=\"translate(477.3,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
988
|
+
"\t\t<text> 10</text>\n",
|
989
|
+
"\t</g>\n",
|
990
|
+
"\t<path stroke='black' d='M562.9,408.0 L562.9,399.0 M562.9,16.7 L562.9,25.7 '/>\t<g transform=\"translate(562.9,430.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
991
|
+
"\t\t<text> 15</text>\n",
|
992
|
+
"\t</g>\n",
|
993
|
+
"\t<path stroke='black' d='M37.3,16.7 L37.3,408.0 L575.0,408.0 L575.0,16.7 L37.3,16.7 Z '/></g>\n",
|
994
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
995
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
996
|
+
"\t<g transform=\"translate(247.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
997
|
+
"\t\t<text>real(tan(x)/atan(x))</text>\n",
|
998
|
+
"\t</g>\n",
|
999
|
+
"\t<path d='M255.6,462.0 L297.8,462.0 M37.3,212.3 L42.7,220.9 L48.2,231.5 L53.6,248.9 L59.0,296.2 L59.9,16.7 \n",
|
1000
|
+
"\t\tM69.5,16.7 L69.9,136.9 L75.3,178.0 L80.8,194.3 L86.2,204.7 L91.6,213.2 L97.0,221.9 L102.5,233.0 \n",
|
1001
|
+
"\t\tL107.9,252.0 L113.3,307.8 L115.8,16.7 M122.8,16.7 L124.2,143.0 L129.6,179.7 L135.1,195.3 L140.5,205.4 \n",
|
1002
|
+
"\t\tL145.9,214.0 L151.4,223.1 L156.8,234.9 L162.2,255.8 L167.7,323.8 L171.3,16.7 M175.9,16.7 L178.5,147.4 \n",
|
1003
|
+
"\t\tL183.9,180.8 L189.4,195.9 L194.8,206.1 L200.2,215.0 L205.7,224.6 L211.1,237.5 L216.5,261.4 L222.0,348.8 \n",
|
1004
|
+
"\t\tL226.5,16.7 M229.2,16.7 L232.8,148.5 L238.3,180.3 L243.7,195.6 L249.1,206.5 L254.6,216.3 L260.0,227.7 \n",
|
1005
|
+
"\t\tL265.4,244.2 L270.8,277.6 L275.7,408.0 M284.2,16.7 L287.1,118.1 L292.6,153.1 L298.0,166.9 L303.4,172.6 \n",
|
1006
|
+
"\t\tL308.9,172.6 L314.3,166.9 L319.7,153.1 L325.2,118.1 L328.1,16.7 M336.6,408.0 L341.5,277.6 L346.9,244.2 \n",
|
1007
|
+
"\t\tL352.3,227.7 L357.7,216.3 L363.2,206.5 L368.6,195.6 L374.0,180.3 L379.5,148.5 L383.1,16.7 M385.8,16.7 \n",
|
1008
|
+
"\t\tL390.3,348.8 L395.8,261.4 L401.2,237.5 L406.6,224.6 L412.1,215.0 L417.5,206.1 L422.9,195.9 L428.4,180.8 \n",
|
1009
|
+
"\t\tL433.8,147.4 L436.4,16.7 M441.0,16.7 L444.6,323.8 L450.1,255.8 L455.5,234.9 L460.9,223.1 L466.4,214.0 \n",
|
1010
|
+
"\t\tL471.8,205.4 L477.2,195.3 L482.7,179.7 L488.1,143.0 L489.5,16.7 M496.5,16.7 L499.0,307.8 L504.4,252.0 \n",
|
1011
|
+
"\t\tL509.8,233.0 L515.3,221.9 L520.7,213.2 L526.1,204.7 L531.5,194.3 L537.0,178.0 L542.4,136.9 L542.8,16.7 \n",
|
1012
|
+
"\t\tM552.4,16.7 L553.3,296.2 L558.7,248.9 L564.1,231.5 L569.6,220.9 L575.0,212.3 '/></g>\n",
|
1013
|
+
"\t</g>\n",
|
1014
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
1015
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1016
|
+
"\t<g transform=\"translate(472.1,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1017
|
+
"\t\t<text>1/x</text>\n",
|
1018
|
+
"\t</g>\n",
|
1019
|
+
"\t<path d='M480.4,462.0 L522.6,462.0 M37.3,214.8 L42.7,214.9 L48.2,214.9 L53.6,215.0 L59.0,215.1 L64.5,215.1 \n",
|
1020
|
+
"\t\tL69.9,215.2 L75.3,215.3 L80.8,215.3 L86.2,215.4 L91.6,215.5 L97.0,215.6 L102.5,215.6 L107.9,215.7 \n",
|
1021
|
+
"\t\tL113.3,215.8 L118.8,215.9 L124.2,216.0 L129.6,216.1 L135.1,216.3 L140.5,216.4 L145.9,216.5 L151.4,216.7 \n",
|
1022
|
+
"\t\tL156.8,216.8 L162.2,217.0 L167.7,217.2 L173.1,217.4 L178.5,217.6 L183.9,217.8 L189.4,218.1 L194.8,218.4 \n",
|
1023
|
+
"\t\tL200.2,218.7 L205.7,219.0 L211.1,219.4 L216.5,219.8 L222.0,220.3 L227.4,220.9 L232.8,221.5 L238.3,222.2 \n",
|
1024
|
+
"\t\tL243.7,223.1 L249.1,224.1 L254.6,225.3 L260.0,226.9 L265.4,228.8 L270.8,231.3 L276.3,234.8 L281.7,239.8 \n",
|
1025
|
+
"\t\tL287.1,247.6 L292.6,261.7 L298.0,294.6 L301.8,408.0 M310.5,16.7 L314.3,130.1 L319.7,163.0 L325.2,177.1 \n",
|
1026
|
+
"\t\tL330.6,184.9 L336.0,189.9 L341.5,193.4 L346.9,195.9 L352.3,197.8 L357.7,199.4 L363.2,200.6 L368.6,201.6 \n",
|
1027
|
+
"\t\tL374.0,202.5 L379.5,203.2 L384.9,203.8 L390.3,204.4 L395.8,204.9 L401.2,205.3 L406.6,205.7 L412.1,206.0 \n",
|
1028
|
+
"\t\tL417.5,206.3 L422.9,206.6 L428.4,206.9 L433.8,207.1 L439.2,207.3 L444.6,207.5 L450.1,207.7 L455.5,207.9 \n",
|
1029
|
+
"\t\tL460.9,208.0 L466.4,208.2 L471.8,208.3 L477.2,208.4 L482.7,208.6 L488.1,208.7 L493.5,208.8 L499.0,208.9 \n",
|
1030
|
+
"\t\tL504.4,209.0 L509.8,209.1 L515.3,209.1 L520.7,209.2 L526.1,209.3 L531.5,209.4 L537.0,209.4 L542.4,209.5 \n",
|
1031
|
+
"\t\tL547.8,209.6 L553.3,209.6 L558.7,209.7 L564.1,209.8 L569.6,209.8 L575.0,209.9 '/></g>\n",
|
1032
|
+
"\t</g>\n",
|
1033
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1034
|
+
"\t<path stroke='black' d='M37.3,16.7 L37.3,408.0 L575.0,408.0 L575.0,16.7 L37.3,16.7 Z '/></g>\n",
|
1035
|
+
"</g>\n",
|
1036
|
+
"</svg>\n",
|
1037
|
+
"\n"
|
1038
|
+
],
|
1039
|
+
"text/plain": [
|
1040
|
+
"#<Numo::Gnuplot::NotePlot:0x000000020643c8 @block=#<Proc:0x00000002064350@<main>:3>>"
|
1041
|
+
]
|
1042
|
+
},
|
1043
|
+
"execution_count": 7,
|
1044
|
+
"metadata": {},
|
1045
|
+
"output_type": "execute_result"
|
1046
|
+
}
|
1047
|
+
],
|
1048
|
+
"source": [
|
1049
|
+
"# set key bmargin center horizontal\n",
|
1050
|
+
"# plot [-5*pi:5*pi] [-5:5] real(tan(x)/atan(x)), 1/x\n",
|
1051
|
+
"\n",
|
1052
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
1053
|
+
" set :key, :bmargin, :center, :horizontal\n",
|
1054
|
+
" plot \"[-5*pi:5*pi]\", -5..5,\n",
|
1055
|
+
" \"real(tan(x)/atan(x))\",\n",
|
1056
|
+
" \"1/x\"\n",
|
1057
|
+
"end"
|
1058
|
+
]
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"cell_type": "code",
|
1062
|
+
"execution_count": 8,
|
1063
|
+
"metadata": {
|
1064
|
+
"collapsed": false
|
1065
|
+
},
|
1066
|
+
"outputs": [
|
1067
|
+
{
|
1068
|
+
"data": {
|
1069
|
+
"image/svg+xml": [
|
1070
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
1071
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
1072
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
1073
|
+
"<svg \n",
|
1074
|
+
" width=\"600\" height=\"480\" \n",
|
1075
|
+
" viewBox=\"0 0 600 480\"\n",
|
1076
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
1077
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
1078
|
+
">\n",
|
1079
|
+
"\n",
|
1080
|
+
"<title>Gnuplot</title>\n",
|
1081
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
1082
|
+
"\n",
|
1083
|
+
"<g id=\"gnuplot_canvas\">\n",
|
1084
|
+
"\n",
|
1085
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
1086
|
+
"<defs>\n",
|
1087
|
+
"\n",
|
1088
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
1089
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
1090
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
1091
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
1092
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
1093
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
1094
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
1095
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
1096
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
1097
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
1098
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
1099
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
1100
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
1101
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
1102
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
1103
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
1104
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
1105
|
+
"\t</filter>\n",
|
1106
|
+
"</defs>\n",
|
1107
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1108
|
+
"</g>\n",
|
1109
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1110
|
+
"\t<path stroke='black' d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(45.6,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1111
|
+
"\t\t<text>-2</text>\n",
|
1112
|
+
"\t</g>\n",
|
1113
|
+
"\t<path stroke='black' d='M53.9,390.6 L62.9,390.6 M575.0,390.6 L566.0,390.6 '/>\t<g transform=\"translate(45.6,395.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1114
|
+
"\t\t<text>-1.5</text>\n",
|
1115
|
+
"\t</g>\n",
|
1116
|
+
"\t<path stroke='black' d='M53.9,337.2 L62.9,337.2 M575.0,337.2 L566.0,337.2 '/>\t<g transform=\"translate(45.6,341.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1117
|
+
"\t\t<text>-1</text>\n",
|
1118
|
+
"\t</g>\n",
|
1119
|
+
"\t<path stroke='black' d='M53.9,283.8 L62.9,283.8 M575.0,283.8 L566.0,283.8 '/>\t<g transform=\"translate(45.6,288.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1120
|
+
"\t\t<text>-0.5</text>\n",
|
1121
|
+
"\t</g>\n",
|
1122
|
+
"\t<path stroke='black' d='M53.9,230.3 L62.9,230.3 M575.0,230.3 L566.0,230.3 '/>\t<g transform=\"translate(45.6,234.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1123
|
+
"\t\t<text> 0</text>\n",
|
1124
|
+
"\t</g>\n",
|
1125
|
+
"\t<path stroke='black' d='M53.9,176.9 L62.9,176.9 M575.0,176.9 L566.0,176.9 '/>\t<g transform=\"translate(45.6,181.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1126
|
+
"\t\t<text> 0.5</text>\n",
|
1127
|
+
"\t</g>\n",
|
1128
|
+
"\t<path stroke='black' d='M53.9,123.5 L62.9,123.5 M575.0,123.5 L566.0,123.5 '/>\t<g transform=\"translate(45.6,128.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1129
|
+
"\t\t<text> 1</text>\n",
|
1130
|
+
"\t</g>\n",
|
1131
|
+
"\t<path stroke='black' d='M53.9,70.1 L62.9,70.1 M575.0,70.1 L566.0,70.1 '/>\t<g transform=\"translate(45.6,74.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1132
|
+
"\t\t<text> 1.5</text>\n",
|
1133
|
+
"\t</g>\n",
|
1134
|
+
"\t<path stroke='black' d='M53.9,16.7 L62.9,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(45.6,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1135
|
+
"\t\t<text> 2</text>\n",
|
1136
|
+
"\t</g>\n",
|
1137
|
+
"\t<path stroke='black' d='M53.9,444.0 L53.9,435.0 M53.9,16.7 L53.9,25.7 '/>\t<g transform=\"translate(53.9,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1138
|
+
"\t\t<text>-30</text>\n",
|
1139
|
+
"\t</g>\n",
|
1140
|
+
"\t<path stroke='black' d='M158.1,444.0 L158.1,435.0 M158.1,16.7 L158.1,25.7 '/>\t<g transform=\"translate(158.1,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1141
|
+
"\t\t<text>-20</text>\n",
|
1142
|
+
"\t</g>\n",
|
1143
|
+
"\t<path stroke='black' d='M262.3,444.0 L262.3,435.0 M262.3,16.7 L262.3,25.7 '/>\t<g transform=\"translate(262.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1144
|
+
"\t\t<text>-10</text>\n",
|
1145
|
+
"\t</g>\n",
|
1146
|
+
"\t<path stroke='black' d='M366.6,444.0 L366.6,435.0 M366.6,16.7 L366.6,25.7 '/>\t<g transform=\"translate(366.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1147
|
+
"\t\t<text> 0</text>\n",
|
1148
|
+
"\t</g>\n",
|
1149
|
+
"\t<path stroke='black' d='M470.8,444.0 L470.8,435.0 M470.8,16.7 L470.8,25.7 '/>\t<g transform=\"translate(470.8,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1150
|
+
"\t\t<text> 10</text>\n",
|
1151
|
+
"\t</g>\n",
|
1152
|
+
"\t<path stroke='black' d='M575.0,444.0 L575.0,435.0 M575.0,16.7 L575.0,25.7 '/>\t<g transform=\"translate(575.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1153
|
+
"\t\t<text> 20</text>\n",
|
1154
|
+
"\t</g>\n",
|
1155
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/>\t<path stroke='black' d='M62.2,43.7 L62.2,25.7 L262.1,25.7 L262.1,43.7 L62.2,43.7 Z '/></g>\n",
|
1156
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
1157
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1158
|
+
"\t<g transform=\"translate(203.3,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1159
|
+
"\t\t<text>sin(x*20)*atan(x)</text>\n",
|
1160
|
+
"\t</g>\n",
|
1161
|
+
"\t<path d='M211.6,34.7 L253.8,34.7 M53.9,223.1 L54.6,72.3 L55.2,138.4 L55.9,330.7 L56.5,385.3 L57.2,227.3 \n",
|
1162
|
+
"\t\tL57.8,73.5 L58.5,135.0 L59.1,327.3 L59.8,386.6 L60.4,231.4 L61.1,74.8 L61.7,131.7 L62.4,323.9 \n",
|
1163
|
+
"\t\tL63.0,387.8 L63.7,235.6 L64.3,76.2 L65.0,128.4 L65.6,320.4 L66.3,388.8 L66.9,239.7 L67.6,77.8 \n",
|
1164
|
+
"\t\tL68.2,125.2 L68.9,316.9 L69.6,389.8 L70.2,243.9 L70.9,79.4 L71.5,122.1 L72.2,313.3 L72.8,390.7 \n",
|
1165
|
+
"\t\tL73.5,248.0 L74.1,81.1 L74.8,119.0 L75.4,309.7 L76.1,391.5 L76.7,252.1 L77.4,82.9 L78.0,116.0 \n",
|
1166
|
+
"\t\tL78.7,306.0 L79.3,392.2 L80.0,256.3 L80.6,84.8 L81.3,113.1 L81.9,302.3 L82.6,392.7 L83.2,260.3 \n",
|
1167
|
+
"\t\tL83.9,86.8 L84.6,110.3 L85.2,298.5 L85.9,393.2 L86.5,264.4 L87.2,88.9 L87.8,107.5 L88.5,294.7 \n",
|
1168
|
+
"\t\tL89.1,393.6 L89.8,268.5 L90.4,91.1 L91.1,104.8 L91.7,290.8 L92.4,393.8 L93.0,272.5 L93.7,93.3 \n",
|
1169
|
+
"\t\tL94.3,102.2 L95.0,286.9 L95.6,393.9 L96.3,276.5 L96.9,95.7 L97.6,99.7 L98.2,283.0 L98.9,394.0 \n",
|
1170
|
+
"\t\tL99.6,280.4 L100.2,98.1 L100.9,97.3 L101.5,279.0 L102.2,393.9 L102.8,284.3 L103.5,100.7 L104.1,95.0 \n",
|
1171
|
+
"\t\tL104.8,275.1 L105.4,393.7 L106.1,288.2 L106.7,103.3 L107.4,92.8 L108.0,271.0 L108.7,393.5 L109.3,292.0 \n",
|
1172
|
+
"\t\tL110.0,106.0 L110.6,90.6 L111.3,267.0 L111.9,393.1 L112.6,295.8 L113.2,108.8 L113.9,88.6 L114.6,262.9 \n",
|
1173
|
+
"\t\tL115.2,392.6 L115.9,299.6 L116.5,111.6 L117.2,86.6 L117.8,258.9 L118.5,392.0 L119.1,303.3 L119.8,114.5 \n",
|
1174
|
+
"\t\tL120.4,84.7 L121.1,254.8 L121.7,391.3 L122.4,306.9 L123.0,117.5 L123.7,82.9 L124.3,250.6 L125.0,390.5 \n",
|
1175
|
+
"\t\tL125.6,310.6 L126.3,120.6 L126.9,81.3 L127.6,246.5 L128.2,389.6 L128.9,314.1 L129.6,123.7 L130.2,79.7 \n",
|
1176
|
+
"\t\tL130.9,242.4 L131.5,388.5 L132.2,317.6 L132.8,126.9 L133.5,78.2 L134.1,238.3 L134.8,387.4 L135.4,321.0 \n",
|
1177
|
+
"\t\tL136.1,130.2 L136.7,76.9 L137.4,234.1 L138.0,386.2 L138.7,324.4 L139.3,133.5 L140.0,75.6 L140.6,230.0 \n",
|
1178
|
+
"\t\tL141.3,384.9 L141.9,327.7 L142.6,136.9 L143.3,74.4 L143.9,225.9 L144.6,383.5 L145.2,330.9 L145.9,140.4 \n",
|
1179
|
+
"\t\tL146.5,73.3 L147.2,221.8 L147.8,381.9 L148.5,334.1 L149.1,143.9 L149.8,72.4 L150.4,217.6 L151.1,380.3 \n",
|
1180
|
+
"\t\tL151.7,337.2 L152.4,147.5 L153.0,71.5 L153.7,213.5 L154.3,378.6 L155.0,340.2 L155.6,151.1 L156.3,70.8 \n",
|
1181
|
+
"\t\tL156.9,209.5 L157.6,376.8 L158.3,343.1 L158.9,154.7 L159.6,70.1 L160.2,205.4 L160.9,374.9 L161.5,346.0 \n",
|
1182
|
+
"\t\tL162.2,158.4 L162.8,69.6 L163.5,201.3 L164.1,372.9 L164.8,348.8 L165.4,162.2 L166.1,69.2 L166.7,197.3 \n",
|
1183
|
+
"\t\tL167.4,370.8 L168.0,351.5 L168.7,166.0 L169.3,68.8 L170.0,193.3 L170.6,368.6 L171.3,354.1 L171.9,169.8 \n",
|
1184
|
+
"\t\tL172.6,68.6 L173.3,189.4 L173.9,366.3 L174.6,356.7 L175.2,173.7 L175.9,68.5 L176.5,185.4 L177.2,364.0 \n",
|
1185
|
+
"\t\tL177.8,359.1 L178.5,177.6 L179.1,68.5 L179.8,181.5 L180.4,361.5 L181.1,361.5 L181.7,181.5 L182.4,68.6 \n",
|
1186
|
+
"\t\tL183.0,177.7 L183.7,359.0 L184.3,363.8 L185.0,185.5 L185.6,68.8 L186.3,173.8 L186.9,356.4 L187.6,365.9 \n",
|
1187
|
+
"\t\tL188.3,189.5 L188.9,69.1 L189.6,170.1 L190.2,353.7 L190.9,368.0 L191.5,193.5 L192.2,69.6 L192.8,166.3 \n",
|
1188
|
+
"\t\tL193.5,350.9 L194.1,370.0 L194.8,197.5 L195.4,70.1 L196.1,162.6 L196.7,348.1 L197.4,371.9 L198.0,201.5 \n",
|
1189
|
+
"\t\tL198.7,70.7 L199.3,159.0 L200.0,345.1 L200.6,373.7 L201.3,205.6 L201.9,71.5 L202.6,155.4 L203.3,342.1 \n",
|
1190
|
+
"\t\tL203.9,375.4 L204.6,209.6 L205.2,72.3 L205.9,151.9 L206.5,339.1 L207.2,377.0 L207.8,213.7 L208.5,73.3 \n",
|
1191
|
+
"\t\tL209.1,148.4 L209.8,335.9 L210.4,378.5 L211.1,217.8 L211.7,74.4 L212.4,145.0 L213.0,332.7 L213.7,379.9 \n",
|
1192
|
+
"\t\tL214.3,221.9 L215.0,75.5 L215.6,141.7 L216.3,329.5 L216.9,381.2 L217.6,225.9 L218.3,76.8 L218.9,138.4 \n",
|
1193
|
+
"\t\tL219.6,326.1 L220.2,382.3 L220.9,230.0 L221.5,78.2 L222.2,135.2 L222.8,322.7 L223.5,383.4 L224.1,234.0 \n",
|
1194
|
+
"\t\tL224.8,79.7 L225.4,132.1 L226.1,319.3 L226.7,384.4 L227.4,238.1 L228.0,81.3 L228.7,129.0 L229.3,315.8 \n",
|
1195
|
+
"\t\tL230.0,385.2 L230.6,242.1 L231.3,82.9 L231.9,126.1 L232.6,312.3 L233.3,386.0 L233.9,246.1 L234.6,84.7 \n",
|
1196
|
+
"\t\tL235.2,123.2 L235.9,308.7 L236.5,386.6 L237.2,250.1 L237.8,86.6 L238.5,120.4 L239.1,305.0 L239.8,387.1 \n",
|
1197
|
+
"\t\tL240.4,254.1 L241.1,88.6 L241.7,117.7 L242.4,301.3 L243.0,387.5 L243.7,258.0 L244.3,90.7 L245.0,115.0 \n",
|
1198
|
+
"\t\tL245.6,297.6 L246.3,387.8 L246.9,261.9 L247.6,92.8 L248.3,112.5 L248.9,293.8 L249.6,388.0 L250.2,265.8 \n",
|
1199
|
+
"\t\tL250.9,95.1 L251.5,110.0 L252.2,290.0 L252.8,388.0 L253.5,269.6 L254.1,97.4 L254.8,107.7 L255.4,286.2 \n",
|
1200
|
+
"\t\tL256.1,388.0 L256.7,273.4 L257.4,99.9 L258.0,105.4 L258.7,282.3 L259.3,387.8 L260.0,277.2 L260.6,102.4 \n",
|
1201
|
+
"\t\tL261.3,103.3 L261.9,278.5 L262.6,387.5 L263.3,280.9 L263.9,105.1 L264.6,101.3 L265.2,274.5 L265.9,387.0 \n",
|
1202
|
+
"\t\tL266.5,284.5 L267.2,107.8 L267.8,99.3 L268.5,270.6 L269.1,386.5 L269.8,288.1 L270.4,110.6 L271.1,97.5 \n",
|
1203
|
+
"\t\tL271.7,266.7 L272.4,385.8 L273.0,291.6 L273.7,113.5 L274.3,95.8 L275.0,262.7 L275.6,385.0 L276.3,295.0 \n",
|
1204
|
+
"\t\tL276.9,116.4 L277.6,94.3 L278.3,258.8 L278.9,384.1 L279.6,298.4 L280.2,119.5 L280.9,92.8 L281.5,254.8 \n",
|
1205
|
+
"\t\tL282.2,383.0 L282.8,301.7 L283.5,122.6 L284.1,91.5 L284.8,250.9 L285.4,381.9 L286.1,304.9 L286.7,125.8 \n",
|
1206
|
+
"\t\tL287.4,90.4 L288.0,246.9 L288.7,380.5 L289.3,308.0 L290.0,129.1 L290.6,89.3 L291.3,243.0 L291.9,379.1 \n",
|
1207
|
+
"\t\tL292.6,311.0 L293.3,132.5 L293.9,88.5 L294.6,239.1 L295.2,377.5 L295.9,313.9 L296.5,135.9 L297.2,87.7 \n",
|
1208
|
+
"\t\tL297.8,235.2 L298.5,375.7 L299.1,316.7 L299.8,139.4 L300.4,87.2 L301.1,231.4 L301.7,373.8 L302.4,319.3 \n",
|
1209
|
+
"\t\tL303.0,143.0 L303.7,86.8 L304.3,227.5 L305.0,371.8 L305.6,321.8 L306.3,146.6 L306.9,86.7 L307.6,223.8 \n",
|
1210
|
+
"\t\tL308.3,369.5 L308.9,324.1 L309.6,150.3 L310.2,86.7 L310.9,220.1 L311.5,367.1 L312.2,326.3 L312.8,154.1 \n",
|
1211
|
+
"\t\tL313.5,86.9 L314.1,216.4 L314.8,364.5 L315.4,328.3 L316.1,158.0 L316.7,87.5 L317.4,212.9 L318.0,361.8 \n",
|
1212
|
+
"\t\tL318.7,330.0 L319.3,161.9 L320.0,88.2 L320.6,209.5 L321.3,358.7 L322.0,331.5 L322.6,165.9 L323.3,89.3 \n",
|
1213
|
+
"\t\tL323.9,206.2 L324.6,355.5 L325.2,332.7 L325.9,170.0 L326.5,90.8 L327.2,203.0 L327.8,351.9 L328.5,333.6 \n",
|
1214
|
+
"\t\tL329.1,174.2 L329.8,92.7 L330.4,200.1 L331.1,348.0 L331.7,334.0 L332.4,178.4 L333.0,95.1 L333.7,197.3 \n",
|
1215
|
+
"\t\tL334.3,343.8 L335.0,333.9 L335.6,182.7 L336.3,98.1 L337.0,194.9 L337.6,339.0 L338.3,333.1 L338.9,187.1 \n",
|
1216
|
+
"\t\tL339.6,101.9 L340.2,192.9 L340.9,333.6 L341.5,331.6 L342.2,191.7 L342.8,106.7 L343.5,191.5 L344.1,327.5 \n",
|
1217
|
+
"\t\tL344.8,328.9 L345.4,196.4 L346.1,112.9 L346.7,190.7 L347.4,320.4 L348.0,324.7 L348.7,201.2 L349.3,120.9 \n",
|
1218
|
+
"\t\tL350.0,191.0 L350.6,311.8 L351.3,318.4 L352.0,206.3 L352.6,131.4 L353.3,192.7 L353.9,301.3 L354.6,309.1 \n",
|
1219
|
+
"\t\tL355.2,211.6 L355.9,145.5 L356.5,196.6 L357.2,288.0 L357.8,295.5 L358.5,217.1 L359.1,164.7 L359.8,203.5 \n",
|
1220
|
+
"\t\tL360.4,271.2 L361.1,276.1 L361.7,222.8 L362.4,190.2 L363.0,214.4 L363.7,250.5 L364.3,250.4 L365.0,228.2 \n",
|
1221
|
+
"\t\tL365.6,221.2 L366.3,229.1 L367.0,227.6 L367.6,220.7 L368.3,232.3 L368.9,253.5 L369.6,245.4 L370.2,206.5 \n",
|
1222
|
+
"\t\tL370.9,191.9 L371.5,234.5 L372.2,281.7 L372.8,260.6 L373.5,190.0 L374.1,168.1 L374.8,234.8 L375.4,303.2 \n",
|
1223
|
+
"\t\tL376.1,273.5 L376.7,178.7 L377.4,149.8 L378.0,233.6 L378.7,318.7 L379.3,284.0 L380.0,171.5 L380.6,136.0 \n",
|
1224
|
+
"\t\tL381.3,231.5 L382.0,329.7 L382.6,292.7 L383.3,167.1 L383.9,125.4 L384.6,228.7 L385.2,337.5 L385.9,300.2 \n",
|
1225
|
+
"\t\tL386.5,164.8 L387.2,117.1 L387.8,225.6 L388.5,343.1 L389.1,306.6 L389.8,163.8 L390.4,110.5 L391.1,222.2 \n",
|
1226
|
+
"\t\tL391.7,347.0 L392.4,312.4 L393.0,163.8 L393.7,105.1 L394.3,218.7 L395.0,349.8 L395.6,317.6 L396.3,164.6 \n",
|
1227
|
+
"\t\tL397.0,100.6 L397.6,215.0 L398.3,351.7 L398.9,322.5 L399.6,165.9 L400.2,96.8 L400.9,211.2 L401.5,352.9 \n",
|
1228
|
+
"\t\tL402.2,326.9 L402.8,167.7 L403.5,93.6 L404.1,207.3 L404.8,353.6 L405.4,331.1 L406.1,169.8 L406.7,90.8 \n",
|
1229
|
+
"\t\tL407.4,203.4 L408.0,353.8 L408.7,335.1 L409.3,172.2 L410.0,88.4 L410.6,199.5 L411.3,353.6 L412.0,338.8 \n",
|
1230
|
+
"\t\tL412.6,174.8 L413.3,86.4 L413.9,195.6 L414.6,353.0 L415.2,342.4 L415.9,177.7 L416.5,84.7 L417.2,191.7 \n",
|
1231
|
+
"\t\tL417.8,352.2 L418.5,345.8 L419.1,180.7 L419.8,83.3 L420.4,187.7 L421.1,351.1 L421.7,349.0 L422.4,183.8 \n",
|
1232
|
+
"\t\tL423.0,82.0 L423.7,183.8 L424.3,349.8 L425.0,352.1 L425.6,187.1 L426.3,81.0 L427.0,179.9 L427.6,348.3 \n",
|
1233
|
+
"\t\tL428.3,355.1 L428.9,190.5 L429.6,80.3 L430.2,176.0 L430.9,346.7 L431.5,357.9 L432.2,193.9 L432.8,79.6 \n",
|
1234
|
+
"\t\tL433.5,172.2 L434.1,344.8 L434.8,360.6 L435.4,197.5 L436.1,79.2 L436.7,168.3 L437.4,342.8 L438.0,363.1 \n",
|
1235
|
+
"\t\tL438.7,201.1 L439.3,79.0 L440.0,164.5 L440.6,340.7 L441.3,365.6 L442.0,204.8 L442.6,78.9 L443.3,160.8 \n",
|
1236
|
+
"\t\tL443.9,338.4 L444.6,367.9 L445.2,208.6 L445.9,78.9 L446.5,157.0 L447.2,336.0 L447.8,370.1 L448.5,212.4 \n",
|
1237
|
+
"\t\tL449.1,79.1 L449.8,153.4 L450.4,333.4 L451.1,372.2 L451.7,216.2 L452.4,79.5 L453.0,149.7 L453.7,330.8 \n",
|
1238
|
+
"\t\tL454.3,374.1 L455.0,220.1 L455.6,79.9 L456.3,146.2 L457.0,328.1 L457.6,376.0 L458.3,224.0 L458.9,80.6 \n",
|
1239
|
+
"\t\tL459.6,142.6 L460.2,325.2 L460.9,377.7 L461.5,227.9 L462.2,81.3 L462.8,139.2 L463.5,322.3 L464.1,379.4 \n",
|
1240
|
+
"\t\tL464.8,231.9 L465.4,82.2 L466.1,135.7 L466.7,319.3 L467.4,380.9 L468.0,235.9 L468.7,83.2 L469.3,132.4 \n",
|
1241
|
+
"\t\tL470.0,316.1 L470.6,382.3 L471.3,239.9 L472.0,84.3 L472.6,129.1 L473.3,312.9 L473.9,383.5 L474.6,243.9 \n",
|
1242
|
+
"\t\tL475.2,85.5 L475.9,125.9 L476.5,309.7 L477.2,384.7 L477.8,247.9 L478.5,86.9 L479.1,122.7 L479.8,306.3 \n",
|
1243
|
+
"\t\tL480.4,385.8 L481.1,251.9 L481.7,88.4 L482.4,119.6 L483.0,302.9 L483.7,386.7 L484.3,255.9 L485.0,89.9 \n",
|
1244
|
+
"\t\tL485.6,116.6 L486.3,299.4 L487.0,387.6 L487.6,259.9 L488.3,91.6 L488.9,113.7 L489.6,295.9 L490.2,388.3 \n",
|
1245
|
+
"\t\tL490.9,263.9 L491.5,93.4 L492.2,110.8 L492.8,292.3 L493.5,388.9 L494.1,267.9 L494.8,95.3 L495.4,108.0 \n",
|
1246
|
+
"\t\tL496.1,288.7 L496.7,389.4 L497.4,271.9 L498.0,97.3 L498.7,105.3 L499.3,284.9 L500.0,389.8 L500.7,275.8 \n",
|
1247
|
+
"\t\tL501.3,99.4 L502.0,102.7 L502.6,281.2 L503.3,390.0 L503.9,279.7 L504.6,101.6 L505.2,100.1 L505.9,277.4 \n",
|
1248
|
+
"\t\tL506.5,390.2 L507.2,283.6 L507.8,103.9 L508.5,97.7 L509.1,273.6 L509.8,390.2 L510.4,287.5 L511.1,106.3 \n",
|
1249
|
+
"\t\tL511.7,95.3 L512.4,269.7 L513.0,390.2 L513.7,291.3 L514.3,108.8 L515.0,93.0 L515.7,265.8 L516.3,390.0 \n",
|
1250
|
+
"\t\tL517.0,295.1 L517.6,111.3 L518.3,90.8 L518.9,261.8 L519.6,389.7 L520.2,298.9 L520.9,114.0 L521.5,88.7 \n",
|
1251
|
+
"\t\tL522.2,257.8 L522.8,389.3 L523.5,302.6 L524.1,116.7 L524.8,86.7 L525.4,253.8 L526.1,388.8 L526.7,306.3 \n",
|
1252
|
+
"\t\tL527.4,119.5 L528.0,84.8 L528.7,249.8 L529.3,388.2 L530.0,310.0 L530.7,122.4 L531.3,83.0 L532.0,245.8 \n",
|
1253
|
+
"\t\tL532.6,387.5 L533.3,313.5 L533.9,125.4 L534.6,81.3 L535.2,241.7 L535.9,386.6 L536.5,317.1 L537.2,128.5 \n",
|
1254
|
+
"\t\tL537.8,79.6 L538.5,237.6 L539.1,385.7 L539.8,320.6 L540.4,131.6 L541.1,78.1 L541.7,233.5 L542.4,384.6 \n",
|
1255
|
+
"\t\tL543.0,324.0 L543.7,134.8 L544.3,76.7 L545.0,229.5 L545.7,383.5 L546.3,327.4 L547.0,138.1 L547.6,75.4 \n",
|
1256
|
+
"\t\tL548.3,225.4 L548.9,382.2 L549.6,330.7 L550.2,141.4 L550.9,74.1 L551.5,221.2 L552.2,380.9 L552.8,334.0 \n",
|
1257
|
+
"\t\tL553.5,144.8 L554.1,73.0 L554.8,217.1 L555.4,379.4 L556.1,337.1 L556.7,148.3 L557.4,72.0 L558.0,213.0 \n",
|
1258
|
+
"\t\tL558.7,377.9 L559.3,340.3 L560.0,151.8 L560.7,71.1 L561.3,209.0 L562.0,376.2 L562.6,343.3 L563.3,155.4 \n",
|
1259
|
+
"\t\tL563.9,70.3 L564.6,204.9 L565.2,374.4 L565.9,346.3 L566.5,159.0 L567.2,69.6 L567.8,200.8 L568.5,372.6 \n",
|
1260
|
+
"\t\tL569.1,349.2 L569.8,162.7 L570.4,69.0 L571.1,196.7 L571.7,370.6 L572.4,352.0 L573.0,166.4 L573.7,68.5 \n",
|
1261
|
+
"\t\tL574.3,192.7 L575.0,368.6 '/></g>\n",
|
1262
|
+
"\t</g>\n",
|
1263
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1264
|
+
"\t<path stroke='black' d='M53.9,16.7 L53.9,444.0 L575.0,444.0 L575.0,16.7 L53.9,16.7 Z '/></g>\n",
|
1265
|
+
"</g>\n",
|
1266
|
+
"</svg>\n",
|
1267
|
+
"\n"
|
1268
|
+
],
|
1269
|
+
"text/plain": [
|
1270
|
+
"#<Numo::Gnuplot::NotePlot:0x00000001f12060 @block=#<Proc:0x00000001f11d68@<main>:5>>"
|
1271
|
+
]
|
1272
|
+
},
|
1273
|
+
"execution_count": 8,
|
1274
|
+
"metadata": {},
|
1275
|
+
"output_type": "execute_result"
|
1276
|
+
}
|
1277
|
+
],
|
1278
|
+
"source": [
|
1279
|
+
"# set key left box\n",
|
1280
|
+
"# set autoscale\n",
|
1281
|
+
"# set samples 800\n",
|
1282
|
+
"# plot [-30:20] sin(x*20)*atan(x)\n",
|
1283
|
+
"\n",
|
1284
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
1285
|
+
" set :key, :left, :box\n",
|
1286
|
+
" set :autoscale\n",
|
1287
|
+
" set samples:800\n",
|
1288
|
+
" plot -30..20,\n",
|
1289
|
+
" \"sin(x*20)*atan(x)\"\n",
|
1290
|
+
"end"
|
1291
|
+
]
|
1292
|
+
},
|
1293
|
+
{
|
1294
|
+
"cell_type": "code",
|
1295
|
+
"execution_count": 9,
|
1296
|
+
"metadata": {
|
1297
|
+
"collapsed": false
|
1298
|
+
},
|
1299
|
+
"outputs": [
|
1300
|
+
{
|
1301
|
+
"data": {
|
1302
|
+
"image/svg+xml": [
|
1303
|
+
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
|
1304
|
+
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n",
|
1305
|
+
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
1306
|
+
"<svg \n",
|
1307
|
+
" width=\"600\" height=\"480\" \n",
|
1308
|
+
" viewBox=\"0 0 600 480\"\n",
|
1309
|
+
" xmlns=\"http://www.w3.org/2000/svg\"\n",
|
1310
|
+
" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
|
1311
|
+
">\n",
|
1312
|
+
"\n",
|
1313
|
+
"<title>Gnuplot</title>\n",
|
1314
|
+
"<desc>Produced by GNUPLOT 4.6 patchlevel 6 </desc>\n",
|
1315
|
+
"\n",
|
1316
|
+
"<g id=\"gnuplot_canvas\">\n",
|
1317
|
+
"\n",
|
1318
|
+
"<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
|
1319
|
+
"<defs>\n",
|
1320
|
+
"\n",
|
1321
|
+
"\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
|
1322
|
+
"\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
|
1323
|
+
"\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
|
1324
|
+
"\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
|
1325
|
+
"\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
1326
|
+
"\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
|
1327
|
+
"\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
|
1328
|
+
"\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
|
1329
|
+
"\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
|
1330
|
+
"\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
|
1331
|
+
"\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
|
1332
|
+
"\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
|
1333
|
+
"\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
|
1334
|
+
"\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
|
1335
|
+
"\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
|
1336
|
+
"\t <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
|
1337
|
+
"\t <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
|
1338
|
+
"\t</filter>\n",
|
1339
|
+
"</defs>\n",
|
1340
|
+
"<g style=\"fill:none; color:white; stroke:black; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1341
|
+
"</g>\n",
|
1342
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1343
|
+
"\t<path stroke='black' d='M45.6,444.0 L54.6,444.0 M575.0,444.0 L566.0,444.0 '/>\t<g transform=\"translate(37.3,448.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1344
|
+
"\t\t<text>-10</text>\n",
|
1345
|
+
"\t</g>\n",
|
1346
|
+
"\t<path stroke='black' d='M45.6,401.3 L54.6,401.3 M575.0,401.3 L566.0,401.3 '/>\t<g transform=\"translate(37.3,405.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1347
|
+
"\t\t<text>-8</text>\n",
|
1348
|
+
"\t</g>\n",
|
1349
|
+
"\t<path stroke='black' d='M45.6,358.5 L54.6,358.5 M575.0,358.5 L566.0,358.5 '/>\t<g transform=\"translate(37.3,363.0)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1350
|
+
"\t\t<text>-6</text>\n",
|
1351
|
+
"\t</g>\n",
|
1352
|
+
"\t<path stroke='black' d='M45.6,315.8 L54.6,315.8 M575.0,315.8 L566.0,315.8 '/>\t<g transform=\"translate(37.3,320.3)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1353
|
+
"\t\t<text>-4</text>\n",
|
1354
|
+
"\t</g>\n",
|
1355
|
+
"\t<path stroke='black' d='M45.6,273.1 L54.6,273.1 M575.0,273.1 L566.0,273.1 '/>\t<g transform=\"translate(37.3,277.6)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1356
|
+
"\t\t<text>-2</text>\n",
|
1357
|
+
"\t</g>\n",
|
1358
|
+
"\t<path stroke='black' d='M45.6,230.3 L54.6,230.3 M575.0,230.3 L566.0,230.3 '/>\t<g transform=\"translate(37.3,234.8)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1359
|
+
"\t\t<text> 0</text>\n",
|
1360
|
+
"\t</g>\n",
|
1361
|
+
"\t<path stroke='black' d='M45.6,187.6 L54.6,187.6 M575.0,187.6 L566.0,187.6 '/>\t<g transform=\"translate(37.3,192.1)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1362
|
+
"\t\t<text> 2</text>\n",
|
1363
|
+
"\t</g>\n",
|
1364
|
+
"\t<path stroke='black' d='M45.6,144.9 L54.6,144.9 M575.0,144.9 L566.0,144.9 '/>\t<g transform=\"translate(37.3,149.4)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1365
|
+
"\t\t<text> 4</text>\n",
|
1366
|
+
"\t</g>\n",
|
1367
|
+
"\t<path stroke='black' d='M45.6,102.2 L54.6,102.2 M575.0,102.2 L566.0,102.2 '/>\t<g transform=\"translate(37.3,106.7)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1368
|
+
"\t\t<text> 6</text>\n",
|
1369
|
+
"\t</g>\n",
|
1370
|
+
"\t<path stroke='black' d='M45.6,59.4 L54.6,59.4 M575.0,59.4 L566.0,59.4 '/>\t<g transform=\"translate(37.3,63.9)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1371
|
+
"\t\t<text> 8</text>\n",
|
1372
|
+
"\t</g>\n",
|
1373
|
+
"\t<path stroke='black' d='M45.6,16.7 L54.6,16.7 M575.0,16.7 L566.0,16.7 '/>\t<g transform=\"translate(37.3,21.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1374
|
+
"\t\t<text> 10</text>\n",
|
1375
|
+
"\t</g>\n",
|
1376
|
+
"\t<path stroke='black' d='M101.3,444.0 L101.3,435.0 M101.3,16.7 L101.3,25.7 '/>\t<g transform=\"translate(101.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1377
|
+
"\t\t<text>-15</text>\n",
|
1378
|
+
"\t</g>\n",
|
1379
|
+
"\t<path stroke='black' d='M171.0,444.0 L171.0,435.0 M171.0,16.7 L171.0,25.7 '/>\t<g transform=\"translate(171.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1380
|
+
"\t\t<text>-10</text>\n",
|
1381
|
+
"\t</g>\n",
|
1382
|
+
"\t<path stroke='black' d='M240.6,444.0 L240.6,435.0 M240.6,16.7 L240.6,25.7 '/>\t<g transform=\"translate(240.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1383
|
+
"\t\t<text>-5</text>\n",
|
1384
|
+
"\t</g>\n",
|
1385
|
+
"\t<path stroke='black' d='M310.3,444.0 L310.3,435.0 M310.3,16.7 L310.3,25.7 '/>\t<g transform=\"translate(310.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1386
|
+
"\t\t<text> 0</text>\n",
|
1387
|
+
"\t</g>\n",
|
1388
|
+
"\t<path stroke='black' d='M380.0,444.0 L380.0,435.0 M380.0,16.7 L380.0,25.7 '/>\t<g transform=\"translate(380.0,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1389
|
+
"\t\t<text> 5</text>\n",
|
1390
|
+
"\t</g>\n",
|
1391
|
+
"\t<path stroke='black' d='M449.6,444.0 L449.6,435.0 M449.6,16.7 L449.6,25.7 '/>\t<g transform=\"translate(449.6,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1392
|
+
"\t\t<text> 10</text>\n",
|
1393
|
+
"\t</g>\n",
|
1394
|
+
"\t<path stroke='black' d='M519.3,444.0 L519.3,435.0 M519.3,16.7 L519.3,25.7 '/>\t<g transform=\"translate(519.3,466.5)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle\">\n",
|
1395
|
+
"\t\t<text> 15</text>\n",
|
1396
|
+
"\t</g>\n",
|
1397
|
+
"\t<path stroke='black' d='M45.6,16.7 L45.6,444.0 L575.0,444.0 L575.0,16.7 L45.6,16.7 Z '/></g>\n",
|
1398
|
+
"\t<g id=\"gnuplot_plot_1\" ><title>gnuplot_plot_1</title>\n",
|
1399
|
+
"<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1400
|
+
"\t<g transform=\"translate(507.9,39.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1401
|
+
"\t\t<text>'../gnuplot/script/1.dat'</text>\n",
|
1402
|
+
"\t</g>\n",
|
1403
|
+
"\t<path d='M516.2,34.7 L558.4,34.7 M45.6,230.3 L45.6,295.2 M59.5,230.3 L59.5,295.1 M73.5,230.3 L73.5,295.0 \n",
|
1404
|
+
"\t\tM87.4,230.3 L87.4,294.8 M101.3,230.3 L101.3,294.6 M115.3,230.3 L115.3,294.4 M129.2,230.3 L129.2,294.2 \n",
|
1405
|
+
"\t\tM143.1,230.3 L143.1,293.9 M157.1,230.3 L157.1,293.6 M171.0,230.3 L171.0,293.2 M184.9,230.3 L184.9,292.7 \n",
|
1406
|
+
"\t\tM198.8,230.3 L198.8,292.2 M212.8,230.3 L212.8,291.4 M226.7,230.3 L226.7,290.4 M240.6,230.3 L240.6,289.0 \n",
|
1407
|
+
"\t\tM254.6,230.3 L254.6,287.0 M268.5,230.3 L268.5,283.7 M282.4,230.3 L282.4,277.7 M296.4,230.3 L296.4,263.9 \n",
|
1408
|
+
"\t\tM310.3,230.3 M324.2,230.3 L324.2,196.8 M338.2,230.3 L338.2,183.0 M352.1,230.3 L352.1,177.0 M366.0,230.3 \n",
|
1409
|
+
"\t\tL366.0,173.7 M380.0,230.3 L380.0,171.7 M393.9,230.3 L393.9,170.3 M407.8,230.3 L407.8,169.3 M421.8,230.3 \n",
|
1410
|
+
"\t\tL421.8,168.5 M435.7,230.3 L435.7,168.0 M449.6,230.3 L449.6,167.5 M463.5,230.3 L463.5,167.1 M477.5,230.3 \n",
|
1411
|
+
"\t\tL477.5,166.8 M491.4,230.3 L491.4,166.5 M505.3,230.3 L505.3,166.3 M519.3,230.3 L519.3,166.1 M533.2,230.3 \n",
|
1412
|
+
"\t\tL533.2,165.9 M547.1,230.3 L547.1,165.7 M561.1,230.3 L561.1,165.6 M575.0,230.3 L575.0,165.5 '/></g>\n",
|
1413
|
+
"\t</g>\n",
|
1414
|
+
"\t<g id=\"gnuplot_plot_2\" ><title>gnuplot_plot_2</title>\n",
|
1415
|
+
"<g style=\"fill:none; color:green; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1416
|
+
"\t<g transform=\"translate(507.9,57.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1417
|
+
"\t\t<text>'../gnuplot/script/2.dat'</text>\n",
|
1418
|
+
"\t</g>\n",
|
1419
|
+
"\t<use xlink:href='#gpPt1' transform='translate(45.6,360.1) scale(4.50)'/>\n",
|
1420
|
+
"\t<use xlink:href='#gpPt1' transform='translate(59.5,359.8) scale(4.50)'/>\n",
|
1421
|
+
"\t<use xlink:href='#gpPt1' transform='translate(73.5,359.6) scale(4.50)'/>\n",
|
1422
|
+
"\t<use xlink:href='#gpPt1' transform='translate(87.4,359.3) scale(4.50)'/>\n",
|
1423
|
+
"\t<use xlink:href='#gpPt1' transform='translate(101.3,358.9) scale(4.50)'/>\n",
|
1424
|
+
"\t<use xlink:href='#gpPt1' transform='translate(115.3,358.5) scale(4.50)'/>\n",
|
1425
|
+
"\t<use xlink:href='#gpPt1' transform='translate(129.2,358.0) scale(4.50)'/>\n",
|
1426
|
+
"\t<use xlink:href='#gpPt1' transform='translate(143.1,357.5) scale(4.50)'/>\n",
|
1427
|
+
"\t<use xlink:href='#gpPt1' transform='translate(157.1,356.8) scale(4.50)'/>\n",
|
1428
|
+
"\t<use xlink:href='#gpPt1' transform='translate(171.0,356.1) scale(4.50)'/>\n",
|
1429
|
+
"\t<use xlink:href='#gpPt1' transform='translate(184.9,355.1) scale(4.50)'/>\n",
|
1430
|
+
"\t<use xlink:href='#gpPt1' transform='translate(198.8,354.0) scale(4.50)'/>\n",
|
1431
|
+
"\t<use xlink:href='#gpPt1' transform='translate(212.8,352.5) scale(4.50)'/>\n",
|
1432
|
+
"\t<use xlink:href='#gpPt1' transform='translate(226.7,350.5) scale(4.50)'/>\n",
|
1433
|
+
"\t<use xlink:href='#gpPt1' transform='translate(240.6,347.7) scale(4.50)'/>\n",
|
1434
|
+
"\t<use xlink:href='#gpPt1' transform='translate(254.6,343.7) scale(4.50)'/>\n",
|
1435
|
+
"\t<use xlink:href='#gpPt1' transform='translate(268.5,337.1) scale(4.50)'/>\n",
|
1436
|
+
"\t<use xlink:href='#gpPt1' transform='translate(282.4,325.0) scale(4.50)'/>\n",
|
1437
|
+
"\t<use xlink:href='#gpPt1' transform='translate(296.4,297.5) scale(4.50)'/>\n",
|
1438
|
+
"\t<use xlink:href='#gpPt1' transform='translate(310.3,230.3) scale(4.50)'/>\n",
|
1439
|
+
"\t<use xlink:href='#gpPt1' transform='translate(324.2,163.2) scale(4.50)'/>\n",
|
1440
|
+
"\t<use xlink:href='#gpPt1' transform='translate(338.2,135.7) scale(4.50)'/>\n",
|
1441
|
+
"\t<use xlink:href='#gpPt1' transform='translate(352.1,123.6) scale(4.50)'/>\n",
|
1442
|
+
"\t<use xlink:href='#gpPt1' transform='translate(366.0,117.0) scale(4.50)'/>\n",
|
1443
|
+
"\t<use xlink:href='#gpPt1' transform='translate(380.0,113.0) scale(4.50)'/>\n",
|
1444
|
+
"\t<use xlink:href='#gpPt1' transform='translate(393.9,110.2) scale(4.50)'/>\n",
|
1445
|
+
"\t<use xlink:href='#gpPt1' transform='translate(407.8,108.2) scale(4.50)'/>\n",
|
1446
|
+
"\t<use xlink:href='#gpPt1' transform='translate(421.8,106.7) scale(4.50)'/>\n",
|
1447
|
+
"\t<use xlink:href='#gpPt1' transform='translate(435.7,105.6) scale(4.50)'/>\n",
|
1448
|
+
"\t<use xlink:href='#gpPt1' transform='translate(449.6,104.6) scale(4.50)'/>\n",
|
1449
|
+
"\t<use xlink:href='#gpPt1' transform='translate(463.5,103.9) scale(4.50)'/>\n",
|
1450
|
+
"\t<use xlink:href='#gpPt1' transform='translate(477.5,103.2) scale(4.50)'/>\n",
|
1451
|
+
"\t<use xlink:href='#gpPt1' transform='translate(491.4,102.7) scale(4.50)'/>\n",
|
1452
|
+
"\t<use xlink:href='#gpPt1' transform='translate(505.3,102.2) scale(4.50)'/>\n",
|
1453
|
+
"\t<use xlink:href='#gpPt1' transform='translate(519.3,101.8) scale(4.50)'/>\n",
|
1454
|
+
"\t<use xlink:href='#gpPt1' transform='translate(533.2,101.4) scale(4.50)'/>\n",
|
1455
|
+
"\t<use xlink:href='#gpPt1' transform='translate(547.1,101.1) scale(4.50)'/>\n",
|
1456
|
+
"\t<use xlink:href='#gpPt1' transform='translate(561.1,100.9) scale(4.50)'/>\n",
|
1457
|
+
"\t<use xlink:href='#gpPt1' transform='translate(575.0,100.6) scale(4.50)'/>\n",
|
1458
|
+
"\t<use xlink:href='#gpPt1' transform='translate(537.3,52.7) scale(4.50)'/>\n",
|
1459
|
+
"</g>\n",
|
1460
|
+
"\t</g>\n",
|
1461
|
+
"\t<g id=\"gnuplot_plot_3\" ><title>gnuplot_plot_3</title>\n",
|
1462
|
+
"<g style=\"fill:none; color:blue; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1463
|
+
"\t<g transform=\"translate(507.9,75.2)\" style=\"stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end\">\n",
|
1464
|
+
"\t\t<text>'../gnuplot/script/3.dat'</text>\n",
|
1465
|
+
"\t</g>\n",
|
1466
|
+
"\t<path d='M516.2,70.7 L558.4,70.7 M45.6,425.0 L59.5,424.6 L73.5,424.2 L87.4,423.7 L101.3,423.2 L115.3,422.6 \n",
|
1467
|
+
"\t\tL129.2,421.9 L143.1,421.1 L157.1,420.1 L171.0,418.9 L184.9,417.5 L198.8,415.8 L212.8,413.5 L226.7,410.5 \n",
|
1468
|
+
"\t\tL240.6,406.4 L254.6,400.3 L268.5,390.5 L282.4,372.3 L296.4,331.0 L310.3,230.3 L324.2,129.7 L338.2,88.4 \n",
|
1469
|
+
"\t\tL352.1,70.2 L366.0,60.4 L380.0,54.3 L393.9,50.2 L407.8,47.2 L421.8,44.9 L435.7,43.2 L449.6,41.8 \n",
|
1470
|
+
"\t\tL463.5,40.6 L477.5,39.6 L491.4,38.8 L505.3,38.1 L519.3,37.5 L533.2,37.0 L547.1,36.5 L561.1,36.1 \n",
|
1471
|
+
"\t\tL575.0,35.7 '/></g>\n",
|
1472
|
+
"\t</g>\n",
|
1473
|
+
"<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n",
|
1474
|
+
"\t<path stroke='black' d='M45.6,16.7 L45.6,444.0 L575.0,444.0 L575.0,16.7 L45.6,16.7 Z '/></g>\n",
|
1475
|
+
"</g>\n",
|
1476
|
+
"</svg>\n",
|
1477
|
+
"\n"
|
1478
|
+
],
|
1479
|
+
"text/plain": [
|
1480
|
+
"#<Numo::Gnuplot::NotePlot:0x00000001ea22d8 @block=#<Proc:0x00000001ea2260@<main>:2>>"
|
1481
|
+
]
|
1482
|
+
},
|
1483
|
+
"execution_count": 9,
|
1484
|
+
"metadata": {},
|
1485
|
+
"output_type": "execute_result"
|
1486
|
+
}
|
1487
|
+
],
|
1488
|
+
"source": [
|
1489
|
+
"# plot [-19:19] '1.dat' with impulses, '2.dat', '3.dat' with lines\n",
|
1490
|
+
"\n",
|
1491
|
+
"Numo::Gnuplot::NotePlot.new do\n",
|
1492
|
+
" plot -19..19,\n",
|
1493
|
+
" [\"'../gnuplot/script/1.dat'\", with:\"impulses\"],\n",
|
1494
|
+
" \"'../gnuplot/script/2.dat'\",\n",
|
1495
|
+
" [\"'../gnuplot/script/3.dat'\", with:\"lines\"]\n",
|
1496
|
+
"end"
|
1497
|
+
]
|
1498
|
+
}
|
1499
|
+
],
|
1500
|
+
"metadata": {
|
1501
|
+
"kernelspec": {
|
1502
|
+
"display_name": "Ruby 2.3.1",
|
1503
|
+
"language": "ruby",
|
1504
|
+
"name": "ruby"
|
1505
|
+
},
|
1506
|
+
"language_info": {
|
1507
|
+
"file_extension": ".rb",
|
1508
|
+
"mimetype": "application/x-ruby",
|
1509
|
+
"name": "ruby",
|
1510
|
+
"version": "2.3.1"
|
1511
|
+
}
|
1512
|
+
},
|
1513
|
+
"nbformat": 4,
|
1514
|
+
"nbformat_minor": 2
|
1515
|
+
}
|