summaryrefslogtreecommitdiff
path: root/client-responsiveness/scripts/sync_stats.gnuplot
blob: 7fdf29a8145a6b1e6d763842d1d5d89abbc85ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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