ruby-plot 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/plot_points.rb +8 -8
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/lib/plot_points.rb
CHANGED
@@ -34,9 +34,8 @@ module RubyPlot
|
|
34
34
|
min_border = min-border
|
35
35
|
max_border = max+border
|
36
36
|
end
|
37
|
-
|
38
|
-
|
39
|
-
y_range = [min_border, max_border]
|
37
|
+
x_range = min==max ? nil : [min_border, max_border]
|
38
|
+
y_range = min==max ? nil : [min_border, max_border]
|
40
39
|
|
41
40
|
plot_points(path, title, x_lable, y_lable, names, x_values, y_values, log, x_range, y_range, true, true, false, false, false)
|
42
41
|
end
|
@@ -52,7 +51,7 @@ module RubyPlot
|
|
52
51
|
border = (max-min)*0.1
|
53
52
|
min_border = min-border
|
54
53
|
max_border = max+border
|
55
|
-
y_range = [min_border, max_border]
|
54
|
+
y_range = min==max ? nil : [min_border, max_border]
|
56
55
|
|
57
56
|
plot_points(path, title, x_lable, y_lable, names, x_values, y_values, false, nil, y_range, false, false, true, true, reverse_y)
|
58
57
|
end
|
@@ -60,9 +59,10 @@ module RubyPlot
|
|
60
59
|
def self.plot_points(path, title, x_lable, y_lable, names, x_values, y_values,
|
61
60
|
log=true, x_range=nil, y_range=nil, quadratic_scale=true, draw_diagonale=true, line_points=false, reverse_x=false, reverse_y=false)
|
62
61
|
|
63
|
-
LOGGER.debug "ruby-plot:
|
64
|
-
LOGGER.debug "ruby-plot:
|
65
|
-
LOGGER.debug "ruby-plot:
|
62
|
+
LOGGER.debug "ruby-plot: names "+names.inspect
|
63
|
+
LOGGER.debug "ruby-plot: x "+x_values.inspect
|
64
|
+
LOGGER.debug "ruby-plot: y "+y_values.inspect
|
65
|
+
LOGGER.debug "ruby-plot: y_range "+y_range.inspect
|
66
66
|
|
67
67
|
data = []
|
68
68
|
(0..x_values.size-1).each do |i|
|
@@ -196,7 +196,7 @@ module RubyPlot
|
|
196
196
|
output_plt_arr.push "plot \\"#'random_0.dat' using 1:2 title 'random' with lines lw 1, \\"
|
197
197
|
|
198
198
|
style = "points"
|
199
|
-
if
|
199
|
+
if line_points
|
200
200
|
style = "lp"
|
201
201
|
end
|
202
202
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-plot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Vorgrimmler
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-05-
|
19
|
+
date: 2011-05-17 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|