Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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