aboutsummaryrefslogtreecommitdiff
path: root/gnuplot.script
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2025-06-16 17:09:43 +0200
committerToni Uhlig <matzeton@googlemail.com>2025-06-18 15:16:30 +0200
commit0730e77eb4aa9841e90a17f190b9ae7d80565054 (patch)
treeb214414fb23070fcfcbfc880f78eb7b4cef987c8 /gnuplot.script
Initial commitmain
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'gnuplot.script')
-rwxr-xr-xgnuplot.script12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnuplot.script b/gnuplot.script
new file mode 100755
index 0000000..a75243a
--- /dev/null
+++ b/gnuplot.script
@@ -0,0 +1,12 @@
+#!/usr/bin/env gnuplot
+
+set terminal png
+set output "rtt.png"
+f(x) = mean_rtt
+fit f(x) 'rtt.dat' u 1:2 via mean_rtt
+stddev_rtt = sqrt(FIT_WSSR / (FIT_NDF + 1 ))
+set title "Packets vs. RTT"
+set xlabel "Packet Number"
+set ylabel "RTT in usec"
+
+plot "rtt.dat" with lines, mean_rtt w l lt 3, stddev_rtt w l lt 3 lc rgb '#bbbbdd'