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

dir=$HOME/doc/finance

cd /tmp

ledger -M -G register "$@" > $1

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

open report.png