-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_clock.sh
More file actions
executable file
·51 lines (46 loc) · 1.31 KB
/
plot_clock.sh
File metadata and controls
executable file
·51 lines (46 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
# plot_clock.sh
cat <<__EOF__ | gnuplot
reset
set term png size 1200,960
set output "plot_clock-1.png"
set xlabel "Historgram bucket (ns)"
set ylabel "Bucket count (log)"
set yrange [0.5:2000000]
set logscale y
set mxtics 4
load "< sed -n <tst_clock.gp '/^#/s/^# *//p'"
set xrange [0:xrange_1]
title_combined = sprintf("%s", title_1)
set title title_combined noenhanced
plot \
"tst_clock.gp" using 1:2 index 0 with impulses linewidth 2 linecolor 1 title "tst_clock"
reset
set term png size 1200,960
set output "plot_clock-2.png"
set xlabel "Historgram bucket (ns)"
set ylabel "Bucket count (log)"
set yrange [0.5:2000000]
set logscale y
set mxtics 4
load "< sed -n <tst_clock.gp '/^#/s/^# *//p'"
set xrange [0:xrange_2]
title_combined = sprintf("%s", title_2)
set title title_combined noenhanced
plot \
"tst_clock.gp" using 1:2 index 1 with impulses linewidth 2 linecolor 1 title "tst_clock"
reset
set term png size 1200,960
set output "plot_clock-3.png"
set xlabel "Historgram bucket (ns)"
set ylabel "Bucket count (log)"
set yrange [0.5:2000000]
set logscale y
set mxtics 4
load "< sed -n <tst_clock.gp '/^#/s/^# *//p'"
set xrange [0:xrange_3]
title_combined = sprintf("%s", title_3)
set title title_combined noenhanced
plot \
"tst_clock.gp" using 1:2 index 2 with impulses linewidth 2 linecolor 1 title "tst_clock"
__EOF__