From: tsd@tsdye.com (Thomas S. Dye)
To: hubert <hubert@uhoreg.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: plotting a transposed table
Date: Tue, 18 Mar 2014 07:44:20 -1000 [thread overview]
Message-ID: <m2iorbh05n.fsf@tsdye.com> (raw)
In-Reply-To: <87lhw7qwy1.fsf@desiato.home.uhoreg.ca> (hubert@uhoreg.ca's message of "Tue, 18 Mar 2014 12:43:34 -0400")
Aloha hubert,
Could you use the transpose function in the Library of Babel?
#+name: transpose-example
| 1 | 2 | 3 |
| 4 | 5 | 6 |
#+name: transpose
#+begin_src emacs-lisp :var table=transpose-example
(apply #'mapcar* #'list table)
#+end_src
#+results: transpose
| 1 | 4 |
| 2 | 5 |
| 3 | 6 |
All the best,
Tom
hubert <hubert@uhoreg.ca> writes:
> I have a table where the data runs left-to-right instead of
> top-to-bottom. For example:
>
> | year | 2014 | 2015 | 2016 | 2017 | 2018 |
> | value | 1 | 2 | 3 | 4 | 5 |
>
> Gnuplot expects the data to be top-to-bottom, but I want to keep the
> table in that format. I know that I could write an external script
> create a transposed copy of the table, but I was wondering if there was
> an easier way to plot the data.
--
Thomas S. Dye
http://www.tsdye.com
next prev parent reply other threads:[~2014-03-18 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 16:43 plotting a transposed table hubert
2014-03-18 17:44 ` Thomas S. Dye [this message]
2014-03-18 18:19 ` hubert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2iorbh05n.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=hubert@uhoreg.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.