summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-03-15 18:10:43 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-03-15 18:10:43 +0100
commit4d7772c6a45398eae1b25a1e4b01283976d2cf06 (patch)
tree36d12b4cc1ec1e4e2e6a3b40d4955bea0dd32ea7
parentde7c5996693f912100dfc80d92ff09c14adee393 (diff)
downloadorg-mode-4d7772c6a45398eae1b25a1e4b01283976d2cf06.tar.gz
org-plot: Fix empty cells handling
* lisp/org-plot.el (org-plot/gnuplot-script): Fix empty cells handling. Reported-by: Anders Wirzenius <anders.wirzenius@netikka.fi> <http://permalink.gmane.org/gmane.emacs.orgmode/96022>
-rw-r--r--lisp/org-plot.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 10328f5..a089f34 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -220,6 +220,9 @@ manner suitable for prepending to a user-specified script."
(when title (funcall ats (format "set title '%s'" title))) ; title
(mapc ats lines) ; line
(dolist (el sets) (funcall ats (format "set %s" el))) ; set
+ ;; Unless specified otherwise, values are TAB separated.
+ (unless (org-string-match-p "^set datafile separator" script)
+ (funcall ats "set datafile separator \"\\t\""))
(when x-labels ; x labels (xtics)
(funcall ats
(format "set xtics (%s)"