emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-babel results preamble
@ 2011-07-30 14:02 Derek Thomas
  2011-08-02 17:09 ` Eric Schulte
  2011-08-25 14:50 ` Eric S Fraga
  0 siblings, 2 replies; 4+ messages in thread
From: Derek Thomas @ 2011-07-30 14:02 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-25 15:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-08-25 15:04   ` Derek Thomas

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).