Skip to content

Instantly share code, notes, and snippets.

@kungfuant
Created February 9, 2015 15:52
Show Gist options
  • Save kungfuant/ced1e5fffe68b4e2409d to your computer and use it in GitHub Desktop.
Save kungfuant/ced1e5fffe68b4e2409d to your computer and use it in GitHub Desktop.
Plot moneypot profit chart
#!/usr/local/bin/gnuplot
reset
set terminal png size 1920,1200
set output "moneypot-profit.png"
set xlabel "Time"
set ylabel "Profit"
set title "MoneyPot - Profit"
set xtics 2592000 # 30 days in seconds
set ytics 5
set grid xtics ytics
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S+00"
set datafile separator ","
plot "moneypot-profit.csv" using 1:2 smooth cumulative title ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment