From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: [bug] serious problem retrieving data from table for gnuplot
Date: Fri, 14 Jan 2022 13:04:11 +0000 [thread overview]
Message-ID: <87sftqfoz8.fsf@disroot.org> (raw)
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
next reply other threads:[~2022-01-14 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-14 13:04 Eric S Fraga [this message]
2022-01-14 13:35 ` [bug] serious problem retrieving data from table for gnuplot Eric S Fraga
2022-01-14 14:09 ` Ihor Radchenko
2022-01-14 14:01 ` Ihor Radchenko
2022-01-14 14:11 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sftqfoz8.fsf@disroot.org \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).