Function: org-babel-gnuplot-table-to-data
org-babel-gnuplot-table-to-data is a byte-compiled function defined in
ob-gnuplot.el.gz.
Signature
(org-babel-gnuplot-table-to-data TABLE DATA-FILE PARAMS)
Documentation
Export TABLE to DATA-FILE in a format readable by gnuplot.
Pass PARAMS through to orgtbl-to-generic when exporting TABLE.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-gnuplot.el.gz
(defun org-babel-gnuplot-table-to-data (table data-file params)
"Export TABLE to DATA-FILE in a format readable by gnuplot.
Pass PARAMS through to `orgtbl-to-generic' when exporting TABLE."
(require 'ox-org)
(with-temp-file data-file
(insert (let ((org-babel-gnuplot-timestamp-fmt
(or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S")))
(orgtbl-to-generic
table
(org-combine-plists
'( :sep "\t" :fmt org-babel-gnuplot-quote-tsv-field
;; Two setting below are needed to make :fmt work.
:raw t
:backend ascii)
params)))))
data-file)