summaryrefslogtreecommitdiff
path: root/scripts/sync_stats.gnuplot
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-05-02 20:25:45 -0300
committerdrebs <drebs@riseup.net>2016-05-02 20:44:20 -0300
commit31b527a9acc8607e5e03927b3b646b7c832e7058 (patch)
tree0198120076f62027bbbaf70eed6358df012d4cde /scripts/sync_stats.gnuplot
parent9c1dc66c057dee764e80af875cb60a75e8e3aca4 (diff)
refactor and make complete test run with script
Diffstat (limited to 'scripts/sync_stats.gnuplot')
-rwxr-xr-xscripts/sync_stats.gnuplot23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/sync_stats.gnuplot b/scripts/sync_stats.gnuplot
new file mode 100755
index 0000000..7fdf29a
--- /dev/null
+++ b/scripts/sync_stats.gnuplot
@@ -0,0 +1,23 @@
+#!/usr/bin/gnuplot
+
+infile="$0"
+outfile="$1"
+
+# maybe save image file
+if (outfile ne '') \
+ set term png size 1000,400; \
+ set output "./out/sync-stats.png"
+
+# make the graph beautiful
+set title 'Soledad Sync Phases'
+set xtics 10
+set ytics 50
+set grid
+set key outside
+
+# plot!
+plot for [col=2:6] infile using 1:col with linespoints title columnheader
+
+# pause when not saving image file
+if (outfile eq '') \
+ pause -1