Skip to content

Instantly share code, notes, and snippets.

@vbajpai
Created July 19, 2012 08:13
Show Gist options
  • Save vbajpai/3141522 to your computer and use it in GitHub Desktop.
Save vbajpai/3141522 to your computer and use it in GitHub Desktop.
Pretty GnuPlots
>> cat gnuplot.gp
set terminal push
set terminal postscript eps font "Times" mono dashed
plot '$0' using 1:2:xtic(4) title "..." smooth csplines with lines, \
'$0' using 1:2 with points notitle pointtype 5 pointsize 1, \
'$0' using 1:3:xtic(4) title "..." smooth csplines with lines, \
'$0' using 1:3 with points notitle pointtype 5 pointsize 1
set xlabel "Number of Items"
set ylabel "Time (secs)"
set key top left
set title '$1'
set grid
set output '$0.eps'
replot
set output
set terminal pop
gnuplot> call 'gnuplot.gp' $FILE 'Plot Title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment