emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Derek Thomas <derekcthomas@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-babel results preamble
Date: Thu, 25 Aug 2011 15:50:04 +0100	[thread overview]
Message-ID: <87hb55v943.fsf@ucl.ac.uk> (raw)
In-Reply-To: <CALDRGc_-4CnewnhSz0=i1JA8zQmOkNZ-msNV3FWyv+qev8wL=Q@mail.gmail.com> (Derek Thomas's message of "Sat, 30 Jul 2011 09:02:58 -0500")

Derek Thomas <derekcthomas@gmail.com> writes:

> I have found that using org-plot to plot the results output of an
> org-babel code block is very useful in prototyping my code.  One minor
> annoyance is the need to remove and replace the #+PLOT: header at the
> beginning of the results output.  Is it possible to specify a
> "preamble" in the source block?  I am looking to produce something
> like this:
>
> #+begin_src sh :results wrap
> ./dtest
> #+end_src
> #+PLOT: ind:1 deps:(2)
> #+results:
> #+BEGIN_RESULT
> | 0.000000000000000E+000 |                     1.0 |
> | 9.999999776482582E-003 |       0.990000000223517 |
> | 1.999999955296516E-002 |       0.980000000447035 |
> | 2.999999932944775E-002 |       0.970000000670552 |
> | 3.999999910593033E-002 |        0.96000000089407 |
> | 4.999999888241291E-002 |       0.950000001117587 |
> #+END_RESULT
> Thanks,
>
> Derek

I am slowly going through all the org emails that I have received in the
three weeks I was off.  This was one of them and appears to not have
been answered?

In any case, possibly naming the src block may achieve what you want
because then the results are placed in the same place every time
regardless of where the results block is...  not tested, especially in
the context of plotting mind you.

HTH,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.175.g8478)

  parent reply	other threads:[~2011-08-25 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-30 14:02 Org-babel results preamble Derek Thomas
2011-08-02 17:09 ` Eric Schulte
2011-08-25 14:50 ` Eric S Fraga [this message]
2011-08-25 15:04   ` Derek Thomas

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=87hb55v943.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=derekcthomas@gmail.com \
    --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).