data = 'DATA'
+stats data nooutput
+threshold = ceil ((STATS_mean + 3 * STATS_stddev) / 1000) * 1000
+
set title "Test TITLE - Load LOAD - Dedicated core(s) (CORE)"
-set xlabel 'tests'
+set xlabel '# of test'
set ylabel 'latency (µs)'
set format y "%.1f"
f(x) = x / 1000
-set style data line
-plot [-5:] [0:] data using (f($1)) notitle
+g(x) = (threshold < x) ? x/1000 : 1/0
+
+plot [-5:] [0:] data using (f($1)) with line ls 1 notitle, \
+ data using (g($1)) with points ls 2 notitle
#pause 5 "please wait 5s"