Skip to content

Instantly share code, notes, and snippets.

@kungfuant
Created February 11, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kungfuant/15b70792977305aa4f1f to your computer and use it in GitHub Desktop.
Save kungfuant/15b70792977305aa4f1f to your computer and use it in GitHub Desktop.
Plot MoneyPot wagered and profit
#!/usr/local/bin/gnuplot
reset
set terminal png size 1920,1200
set output "moneypot-wagered.png"
set title "MoneyPot - Wagered and profit"
set xlabel "Time"
set xtics 2592000 # 30 days in seconds
set ytics 100 nomirror
set ylabel 'Wagered in BTC'
set y2tics 10 nomirror
set y2label 'Profit in BTC'
set grid xtics # ytics
set datafile separator ";"
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S+00"
# Fill with line color
set style fill solid 1.0
plot \
"moneypot-wagered.csv" using 1:3 title 'Wagered' lc rgb "blue" with boxes, \
"moneypot-wagered.csv" using 1:2 title 'Profit' lc rgb "red" lw 3 smooth cumulative axes x1y2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment