[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug] serious problem retrieving data from table for gnuplot
From: |
Eric S Fraga |
Subject: |
[bug] serious problem retrieving data from table for gnuplot |
Date: |
Fri, 14 Jan 2022 13:04:11 +0000 |
Hello all,
as I recently updated org, I seem to have run into a bug with ob-gnuplot
(or ob more generally) where data from a table are not interpreted
correctly. Specifically, if the first column entry in a row is a
negative number, the data file created for use by gnuplot consists of
only - signs, not the actual numbers.
This table, for instance,
#+begin_src org
,#+name: data
| x | y |
|----+----|
| -4 | 16 |
| -3 | 9 |
| -2 | 4 |
| -1 | 1 |
| 0 | 0 |
| 1 | 1 |
| 2 | 4 |
| 3 | 9 |
| 4 | 16 |
,#+TBLFM: $2=$1^2
#+end_src
when converted into a file for use by gnuplot for the following script
#+begin_src org
,#+begin_src gnuplot :var d=data :file t.png :results file
plot d
,#+end_src
#+end_src
looks like this:
,----
| --------------
| --------------
| --------------
| --------------
| 0 0
| 1 1
| 2 4
| 3 9
| 4 16
`----
I've not yet had a chance to track down why this might be.
Thank you,
eric
--
: Eric S Fraga, with org release_9.5.2-298-g1f48d2 in Emacs 29.0.50
- [bug] serious problem retrieving data from table for gnuplot,
Eric S Fraga <=