aboutsummaryrefslogtreecommitdiff
path: root/gnuplot.script
diff options
context:
space:
mode:
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'