From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Org-babel results preamble Date: Thu, 25 Aug 2011 15:50:04 +0100 Message-ID: <87hb55v943.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwbFx-0005xi-7H for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 10:50:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwbFw-00073p-2v for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 10:50:09 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:62191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwbFv-00072U-Uv for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 10:50:08 -0400 In-Reply-To: (Derek Thomas's message of "Sat, 30 Jul 2011 09:02:58 -0500") 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: Derek Thomas Cc: emacs-orgmode@gnu.org Derek Thomas 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)