Skip to content

Instantly share code, notes, and snippets.

@mattbillenstein
Created October 14, 2013 19:54
Show Gist options
  • Save mattbillenstein/6981183 to your computer and use it in GitHub Desktop.
Save mattbillenstein/6981183 to your computer and use it in GitHub Desktop.
gnuplot a csv...
mattb@mattb-mbp:~ $ head infile.csv
elapsed,spent,price
0.127883,0.115402,6.552
0.128115,0.115402,7.207
0.128346,0.116246,7.927
0.128578,0.116246,8.719
0.128809,0.118902,8.806
0.129041,0.119576,8.894
0.129272,0.120159,8.982
0.129504,0.120817,9.071
0.129735,0.122691,9.161
mattb@mattb-mbp:~ $ cat pacing.gp
set datafile separator ','
set key autotitle columnhead
set ytics nomirror
set y2tics
plot 'infile.csv' using :1 with lines, '' using :2 with lines, '' using :3 with lines axes x1y2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment