Skip to content

Instantly share code, notes, and snippets.

@Noktec
Created February 8, 2014 12:28
Show Gist options
  • Save Noktec/8882948 to your computer and use it in GitHub Desktop.
Save Noktec/8882948 to your computer and use it in GitHub Desktop.
Plot Pings with Gnuplot
#Use the following command to retrieve the times of a Pings
# ping -c 100 www.google.co.uk | awk -F [=\ ] {'print $(NF-1)'} | grep -E "[0-9]" > pingTimes.dat
#Then use the following script to plot it with gnuplot
set terminal pdfcairo font "Gill Sans,9" linewidth 2 rounded fontscale 1.0
set output "ping.pdf"
set ylabel "Time in milliseconds"
set xlabel "Number of Pings"
plot "pingTimes.dat" w lp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment