emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] serious problem retrieving data from table for gnuplot
@ 2022-01-14 13:04 Eric S Fraga
  2022-01-14 13:35 ` Eric S Fraga
  2022-01-14 14:01 ` Ihor Radchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2022-01-14 13:04 UTC (permalink / raw)
  To: Emacs Org mode mailing list

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-14 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-14 13:04 [bug] serious problem retrieving data from table for gnuplot Eric S Fraga
2022-01-14 13:35 ` 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

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).