From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [babel] how to pass data to gnuplot from another block Date: Thu, 5 Dec 2013 07:35:38 +0000 Message-ID: <87vbz3lpi8.fsf@ucl.ac.uk> References: <87d2lsbvy7.fsf@ucl.ac.uk> <87iovkihe6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoU6Q-0007Ge-WE for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:16:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoU6I-0005TN-KF for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:16:06 -0500 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186]:47311 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoU6I-0005Sd-Fd for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:15:58 -0500 In-Reply-To: <87iovkihe6.fsf@gmail.com> (Eric Schulte's message of "Fri, 22 Nov 2013 08:00:59 -0700") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric Schulte writes: > Hi Eric, > > The attached works fine for me (using sh since I don't have octave). Dear Eric, thanks for your quick reply and sorry for taking so long to get back to you. I ended up going to Chile for a week the day after sending my original email and had very little Internet access (and, actually, no time even if I had had proper connectivity). Back now! [...] > Ensure that the data you're passing into gnuplot is a table and not a > string. Gnuplot blocks handle tables by writing them to a file, and > then replacing the variable with the file name. As I recall gnuplot > blocks assume string data already is a file name, so the variable is > replaced directly. Ah ha, this is a subtle one! The output looks the same in either case, as Nick D. also notes. By changing the results generated to value and not output and adding an expression at the end of my octave code to generate the value required got things working. The subtlety makes this a rather frustrating experience, however. Is there any way to convince babel to treat a string output as an org table so that subsequent chaining works in this case as well? Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.2-181-gf31eb4.dirty