visualisation-utils 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/scatter-plot +9 -3
- data/visualisation-utils.gemspec +1 -1
- metadata +1 -1
data/bin/scatter-plot
CHANGED
@@ -45,7 +45,10 @@ ranges = @opts[:ranges] ? @opts[:ranges].split(",").map{ |r| "set #{r}"}.join("\
|
|
45
45
|
|
46
46
|
font = @opts[:font] || "Futura"
|
47
47
|
font_size = "12"
|
48
|
-
using_list = legends.zip((2..100).to_a, axes, plot_styles).
|
48
|
+
using_list = legends.zip((2..100).to_a, axes, plot_styles).
|
49
|
+
map{|text, index, yaxis, plot_style|
|
50
|
+
"'#{DATA_FILE_NAME}' using 1:#{index} title \"#{text}\" with #{plot_style} ls #{index-1} axes x1y#{yaxis}"
|
51
|
+
}.join(", ")
|
49
52
|
|
50
53
|
extra_header = @opts[:extra_header] || ""
|
51
54
|
|
@@ -99,8 +102,11 @@ script = <<EOF
|
|
99
102
|
set key outside
|
100
103
|
set key left top
|
101
104
|
#set offsets 1, 1, 1, 0
|
102
|
-
set style line 1 lc rgb '#
|
103
|
-
set style line 2 lc rgb '#
|
105
|
+
set style line 1 lc rgb '#cc0000' pt 4 ps 1 lt 1 lw 3 # --- red
|
106
|
+
set style line 2 lc rgb '#4e9a06' pt 6 ps 1 lt 1 lw 3 # --- green
|
107
|
+
set style line 3 lc rgb '#3465a4' pt 7 ps 1 lt 1 lw 3 # --- blue
|
108
|
+
set style line 4 lc rgb '#f57900' pt 8 ps 1 lt 1 lw 3 # --- orange
|
109
|
+
set style line 5 lc rgb '#edd400' pt 9 ps 1 lt 1 lw 3 # --- butter
|
104
110
|
set style line 11 lc rgb '#808080' lt 1
|
105
111
|
set border 3 back ls 11
|
106
112
|
set tics nomirror
|
data/visualisation-utils.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.summary = 'utilities for quick visualisation'
|
4
4
|
s.description = 'visualisation-utils provides a number of utilities
|
5
5
|
for visualising data from the command line.'
|
6
|
-
s.version = '0.
|
6
|
+
s.version = '0.3'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
|
9
9
|
s.files = ['bin/scatter-plot']
|