Skip to content

Instantly share code, notes, and snippets.

@hayamiz
Created October 29, 2014 17:12
Show Gist options
  • Save hayamiz/9bbb3e13c4b917af80c4 to your computer and use it in GitHub Desktop.
Save hayamiz/9bbb3e13c4b917af80c4 to your computer and use it in GitHub Desktop.
set term postscript enhanced color eps
set size 0.6, 0.6
set logscale x
set logscale y
set ylabel "Execution time [sec]"
set xlabel "Input array size"
set key right bottom
set output "| epstopdf -f -o sort.pdf"
plot 'sort.dat' usi 1:2 wi lp ti 'bubble\_sort', \
'sort.dat' usi 1:3 wi lp ti 'insert\_sort', \
'sort.dat' usi 1:4 wi lp ti 'comb\_sort', \
'sort.dat' usi 1:5 wi lp ti 'heap\_sort', \
'sort.dat' usi 1:6 wi lp ti 'quick\_sort', \
'sort.dat' usi 1:7 wi lp ti 'merge\_sort', \
'sort.dat' usi 1:8 wi lp ti 'radix\_sort'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment