Skip to content

Instantly share code, notes, and snippets.

@camilleriluke
Created September 4, 2018 14:41
Show Gist options
  • Save camilleriluke/85833c9803f8abda9289bc40116ed148 to your computer and use it in GitHub Desktop.
Save camilleriluke/85833c9803f8abda9289bc40116ed148 to your computer and use it in GitHub Desktop.
example plot
#!/usr/local/bin/gnuplot --persist
# If you want to save on disk png … or set "export GNUTERM=x11" for X11 screen window
set terminal png
set output "result.plo.png"
set title "Benchmark1"
set size 1,0.7
set xlabel 'requests'
set ylabel 'ms'
# if you want to use autoscale use "set autoscale xy"
set xrange [0:100]
set yrange [-100:100]
#example plot all file values
plot "./a.plot" using 10 smooth sbezier with lines title "wait", "./a.plot" using 9 smooth sbezier with lines title "ttime", "./a.plot" using 8 smooth sbezier with lines title "dtime", "./a.plot" using 7 smooth sbezier with lines title "ctime"
#example plot col related to wait
plot "./a.plot" using 10 smooth sbezier with lines title "wait"
#example plot two benchmarks results
# plot "./a.plot" using 10 smooth sbezier with lines title "wait.1", "./a.plot.2" using 10 smooth sbezier with lines title "wait.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment