| 1 |
# Gnuplot script to graph the balance |
| 2 |
# Expected format for data is 2 columns: |
| 3 |
# |
| 4 |
# Date Balance |
| 5 |
# |
| 6 |
# Each column data is separated by space or tabulation |
| 7 |
# Date should be in format dd/mm/yyyy |
| 8 |
|
| 9 |
set title '[% ACCOUNT %]' |
| 10 |
set xlabel 'Date'; |
| 11 |
set ylabel 'Balance'; |
| 12 |
set xdata time; |
| 13 |
set timefmt "%d/%m/%Y"; |
| 14 |
set grid |
| 15 |
set terminal png |
| 16 |
set output "[% OUTPUT %]" |
| 17 |
plot '[% FILENAME %]' using 1:2 title "[% TITLE %]" with linespoints; |
| 18 |
|
| 19 |
set terminal wxt |
| 20 |
replot |
| 21 |
|
| 22 |
set terminal dumb |
| 23 |
replot |
| 24 |
|
| 25 |
pause -1 "Hit return to exit" |