I spent some time figuring out how to generate Gnuplot graphs from the financial records I’ve been keeping with Ledger. Here’s what I came up with:
To generate this graph, I pieced together the following reports:
ledger -M -C -R -n -J reg ^assets ^liab > net-worth ledger -t -a -M -C -R -n -j reg ^Income > income ledger -M -C -R -n -j reg ^Expenses > expenses
… and plotted it with Gnuplot:
- set xdata time
- plot “expenses” using 1:2 title “Expenses” with lines, “income” using 1:2 title “Income” with lines, “net-worth” using 1:2 title “Net Worth” with lines, 0 with lines
… and fiddled around with the plot, and that was that!
Random Emacs symbol: gnus-gethash-safe – Macro: Get hash value of STRING in HASHTABLE.Short URL: sach.ac/p/4362