From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [org-plot] multiple graphs on a plot Date: Wed, 03 Feb 2010 10:34:24 -0700 Message-ID: <87y6ja9qan.fsf@gmail.com> References: <87k4uu20sw.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncj7Y-0006El-M3 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 12:34:32 -0500 Received: from [199.232.76.173] (port=49205 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncj7Y-0006EW-Bw for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 12:34:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncj7X-0002KE-AX for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 12:34:32 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:57759) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncj7W-0002KA-Vr for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 12:34:31 -0500 Received: by bwz19 with SMTP id 19so243793bwz.8 for ; Wed, 03 Feb 2010 09:34:30 -0800 (PST) In-Reply-To: <87k4uu20sw.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 03 Feb 2010 08:14:39 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: org-mode mailing list Hi Eric, I don't believe anyone has yet extended org-plot to support multiple independent variable columns. Since stating work on Org-babel [1], I know use gnuplot source-code blocks for all of my plotting needs, as they provide a more direct interface into gnuplot. For example the following should provide the functionality your are looking for... #+tblname: my-table | 1 | 2 | 1.5 | 3 | | 2 | 4 | 3 | 9 | | ... | | | | #+begin_src gnuplot :var data=my-table plot data using 1:2, data using 3:4 #+end_src Cheers -- Eric Eric S Fraga writes: > Back in September, zwz asked about getting multiple graphs on a plot > from a table: > > http://lists.gnu.org/archive/html/emacs-orgmode/2009-09/msg00354.html > > There appears to be no answer to that question. I have the same need > and I was wondering if anybody has an answer to this. > > Basically, given a table that looks like this: > > | x | y1 | x | y2 | > | 1 | 2 | 1.5 | 3 | > | ... | | | | > > I want to plot y1 versus x as one line on a plot and y2 versus x as > another line on the same plot. In gnuplot, this is straightforward: > > plot ... using 1:2, '' using 3:4 > > but org-plot currently assumes :ind to have just one entry. I have > started to look at the code in org-plot to see how to generalise ind > to be a vector of columns but would rather avoid the work if somebody > else has already done this (and because although my elisp skills are > improving daily due to org-mode, they are still rather rudimentary > ;-). > > Thanks, > eric > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] http://orgmode.org/worg/org-contrib/babel/