Debian Codegraph @

contrib/report

raw symbols SCIP
1 #!/bin/sh
2
3 # This script facilities plotting of a ledger register report. If you
4 # use OS/X, and have AquaTerm installed, you will probably want to set
5 # LEDGER_TERM to "aqua".
6 #
7 # Examples of use:
8 #
9 # report -j -M reg food # plot monthly food costs
10 # report -J reg checking # plot checking account balance
11
12 if [ -z "$LEDGER_TERM" ]; then
13 LEDGER_TERM="x11 persist"
14 fi
15
16 (cat <<EOF; ledger "$@") | gnuplot
17 set terminal $LEDGER_TERM
18 set xdata time
19 set timefmt "%Y-%m-%d"
20 plot "-" using 1:2 with lines
21 EOF