summaryrefslogtreecommitdiff
path: root/scripts/sync_stats.gnuplot
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-05-02 20:13:19 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-05-02 20:13:19 -0400
commit01e2a72ce30f0fbb4a027d3246a8ba16e00ae197 (patch)
tree22fc0d2b7016d34d48fad45c88349b0103cd8308 /scripts/sync_stats.gnuplot
parent71a21f8fa46e8ea834fe3381abdadde59788d37b (diff)
parentf72a3bf28f4bf001106ad4d42ae7eb4f61b77828 (diff)
Merge remote-tracking branch 'kali-github/pr/2'
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