Expecting gnuplot to create a png on evaluating a ledgerCli plot report I get the GnuPlot error at the bottom of this post
LedgerCli
#+NAME: LedgerCli
#+BEGIN_SRC ledger :cmdline reg Assets:Cash -J
1957/01/01 Opening Balance
Assets:Cash 10
Equity:OpeningBalances
1957/01/02 Foo
Assets:Cash -5
Expenses:Unknown
1957/01/03 Bar
Assets:Cash -2
Expenses:Unknown
#+END_SRC
#+RESULTS: LedgerCli
: 1957-01-01 10
: 1957-01-02 5
: 1957-01-03 3
GnuPlot
#+begin_src gnuplot :var data=LedgerCli :file gnuplot.png :exports results
plot data u 1:2
#+end_src
#+RESULTS:
[[file:gnuplot.png]]
GnuPlot Error
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2018
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'qt'
gnuplot> cd '/home/'
gnuplot> data = "1957-01-01 10
gnuplot> 1957-01-02 5
^
invalid command
gnuplot> 1957-01-03 3
^
invalid command
gnuplot> "
^
invalid command
gnuplot> set term png
Terminal type is now 'png'
set output "gnuplot.png"
Options are 'nocrop enhanced size 640,480 font "arial,12.0" '
gnuplot> gnuplot> plot data u 1:2
warning: Cannot find or open file "1957-01-01 10"
No data in plot
gnuplot> set output
gnuplot>
gnuplot>
From from a working org-babel gnuplot example, I noticed that gnuplot refers to data with e.g. data = "/tmp/babel-aXF0nC/gnuplot-5sxbKd
. Altering the ledger cmdline to output a table with #+BEGIN_SRC ledger :cmdline reg Assets:Cash --register-format '| %D | %t |\n'
doesn't change the error either