Skip to content

Instantly share code, notes, and snippets.

Created February 8, 2014 12:28
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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 | 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