summaryrefslogtreecommitdiff
path: root/scripts/report
blob: c5dbe171e529cdf63550328e6646e92d94fd5cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

cd /tmp
ledger "$@" > report

gnuplot <<EOF
set terminal png
set output "report.png"
set xdata time
set timefmt "%Y/%m/%d"
plot "report" using 1:2 with linespoints
EOF

rm -f report
open report.png