Skip to content

Commit 7c6ebdf

Browse files
committed
Replace whitespaces
1 parent 97e2b8c commit 7c6ebdf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/histtest.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
require 'gnuplot'
22

33
Gnuplot.open do |gp|
4-
gp << "bin(x, s) = s*int(x/s)\n"
4+
gp << "bin(x, s) = s*int(x/s)\n"
55

6-
Gnuplot::Plot.new( gp ) do |plot|
7-
plot.title "Histogram"
8-
plot.xlabel "x"
9-
plot.ylabel "frequency"
6+
Gnuplot::Plot.new( gp ) do |plot|
7+
plot.title "Histogram"
8+
plot.xlabel "x"
9+
plot.ylabel "frequency"
1010

11-
x = (0..500).collect { |v| (rand()-0.5)**3 }
12-
plot.data << Gnuplot::DataSet.new( [x] ) do |ds|
13-
ds.title = "smooth frequency"
14-
ds.using = "(bin($1,.01)):(1.)"
15-
ds.smooth = "freq"
16-
ds.with = "boxes"
17-
end
11+
x = (0..500).collect { |v| (rand()-0.5)**3 }
12+
plot.data << Gnuplot::DataSet.new( [x] ) do |ds|
13+
ds.title = "smooth frequency"
14+
ds.using = "(bin($1,.01)):(1.)"
15+
ds.smooth = "freq"
16+
ds.with = "boxes"
1817
end
18+
end
1919
end
2020

0 commit comments

Comments
 (0)