From: "Eric Schulte" <schulte.eric@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [org-plot] multiple graphs on a plot
Date: Wed, 03 Feb 2010 10:34:24 -0700 [thread overview]
Message-ID: <87y6ja9qan.fsf@gmail.com> (raw)
In-Reply-To: <87k4uu20sw.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 03 Feb 2010 08:14:39 +0000")
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 <ucecesf@ucl.ac.uk> 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/
next prev parent reply other threads:[~2010-02-03 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 8:14 [org-plot] multiple graphs on a plot Eric S Fraga
2010-02-03 17:34 ` Eric Schulte [this message]
2010-02-04 13:59 ` Eric S Fraga
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6ja9qan.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/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 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).