From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: plotting a transposed table Date: Tue, 18 Mar 2014 07:44:20 -1000 Message-ID: References: <87lhw7qwy1.fsf@desiato.home.uhoreg.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPy5B-0004Ob-VI for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 13:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPy55-0004Ji-Nu for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 13:45:45 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:54136) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WPy55-0004JH-5A for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 13:45:39 -0400 In-Reply-To: <87lhw7qwy1.fsf@desiato.home.uhoreg.ca> (hubert@uhoreg.ca's message of "Tue, 18 Mar 2014 12:43:34 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: hubert Cc: emacs-orgmode@gnu.org 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 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