emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [bug] cannot extract just one column of table for use in gnuplot src


From: Eric S Fraga
Subject: [O] [bug] cannot extract just one column of table for use in gnuplot src block
Date: Sun, 23 Mar 2014 15:44:27 +0000
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux)

Hello,

with this simple example,

#+TITLE:     examplebug.org
#+AUTHOR:    Eric S Fraga

* table references
#+tblname: mytable
|   | A | B | C | D | E | F | G | H | I | Total |
|---+---+---+---+---+---+---+---+---+---+-------|
| 1 | 1 | 1 |   |   | 0 |   |   | 1 |   |     3 |
| 2 | 1 |   |   |   | 0 |   |   | 1 |   |     2 |
| 3 |   |   | 2 | 1 | 0 |   |   | 1 |   |     4 |
| 4 |   |   | 2 | 1 |   |   |   | 1 |   |     4 |
| 5 |   |   | 2 |   |   |   |   |   |   |     2 |
| 6 |   |   |   |   |   | 1 |   |   |   |     1 |
| 7 |   |   |   |   |   |   | 0 |   |   |     0 |
| 8 |   |   |   |   |   |   |   |   | 2 |     2 |
|---+---+---+---+---+---+---+---+---+---+-------|
#+TBLFM: address@hidden::$11=vsum($2..$10)

#+begin_src gnuplot :var data=mytable[1:-1,10] :file histogram.pdf
set xrange [-0.5:25.5]
set yrange [0:4.2]
plot data with histograms notitle
#+end_src
where I am trying to plot out the last column using a histogram plot in
gnuplot, org fails with an error:

Debugger entered--Lisp error: (wrong-type-argument sequencep 3)

where the last function invoked was "orgtbl-format-line(3)".

The trace is attached.  This is with org up to date as of a few minutes ago.

The trace shows that the column has been extracted exactly as I
wish.  However, it would appear that the function may expect a sequence
and not just a single element?  If I try to extract more than just one
column, everything is fine (although obviously the gnuplot directives
need to change...).

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-831-gcb9172-git

Attachment: trace.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]