summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2013-10-19 09:05:47 +0200
committerHans de Graaff <hans@degraaff.org>2013-10-19 09:05:47 +0200
commite91758a784412be86c1da408ec621bac0b4040c4 (patch)
tree4b48005b15b8432cc43e45e7bb00de243de94f85 /ruby-stats/plot
parentA gnuplot script to plot the output of the ruby_stats.py script to SVG. (diff)
downloadruby-scripts-e91758a784412be86c1da408ec621bac0b4040c4.tar.gz
ruby-scripts-e91758a784412be86c1da408ec621bac0b4040c4.tar.bz2
ruby-scripts-e91758a784412be86c1da408ec621bac0b4040c4.zip
Add total number of (ruby-ng) packages as a dashed line.
Diffstat (limited to 'ruby-stats/plot')
-rw-r--r--ruby-stats/plot15
1 files changed, 9 insertions, 6 deletions
diff --git a/ruby-stats/plot b/ruby-stats/plot
index 44b5f0f..d1461d1 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -1,4 +1,6 @@
set terminal svg size 800,600
+set termoption dashed
+
set output "targets.svg"
set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind
@@ -12,9 +14,10 @@ set xdata time
set timefmt "%Y-%m-%d"
set format x "%b %d"
-plot "data.txt" using 1:4 with lines title "ruby18", \
- "data.txt" using 1:5 with lines title "ruby19", \
- "data.txt" using 1:6 with lines title "ruby20", \
- "data.txt" using 1:7 with lines title "jruby", \
- "data.txt" using 1:8 with lines title "ree18", \
- "data.txt" using 1:9 with lines title "rbx"
+plot "data.txt" using 1:3 with lines lt 2 title "total", \
+ "data.txt" using 1:4 with lines lt 1 lc 1 title "ruby18", \
+ "data.txt" using 1:5 with lines lt 1 lc 2 title "ruby19", \
+ "data.txt" using 1:6 with lines lt 1 lc 3 title "ruby20", \
+ "data.txt" using 1:7 with lines lt 1 lc 4 title "jruby", \
+ "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
+ "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"