From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: babel, matlab export plot to png fails Date: Wed, 16 Aug 2017 18:29:34 +0000 Message-ID: References: <87shgveujl.fsf@mat.ucm.es> <5678702d-9fdc-74ff-443c-fa979185ffca@ossau.homelinux.net> <1F5D249B-61D1-490A-8C46-48543A021F15@ucsd.edu> <87mv6zh0kj.fsf@t3610> <41D85352-2EB5-493C-9175-06AD02C843D5@ucsd.edu> <87r2wbfk98.fsf@t3610> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di34f-00060C-NH for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 14:29:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di34a-0003oB-Pj for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 14:29:49 -0400 Received: from iport-acv4-out.ucsd.edu ([132.239.0.7]:53272) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1di34a-0003nL-8X for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 14:29:44 -0400 In-Reply-To: <87r2wbfk98.fsf@t3610> Content-Language: en-US Content-ID: <7154F487CE945D4E82AD05A4D6B05EA5@AD.UCSD.EDU> 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" To: Eric S Fraga Cc: Neil Jerram , "emacs-orgmode@gnu.org" > On Aug 16, 2017, at 11:19 AM, Eric S Fraga wrote: >=20 > On Wednesday, 16 Aug 2017 at 17:48, Berry, Charles wrote: >=20 > [...] >=20 >> org 9.0.9 and FWIW, I see this >=20 > [...] >=20 >> in org-babel-execute:octave >=20 > But I get the following error message from babel/octave: >=20 > error: invalid call to script /usr/share/octave/4.0.3/m/miscellaneous/ans= .m > error: evaluating argument list element number 1 >=20 > Strange. It looks it is expecting to collect the result from the script > (ans). What exactly did you use as the src block header? >=20 To be clear, I do not have either matlab or octave. I just glanced at the c= ode and it seemed to do something along the lines of what your posting migh= t have done when instead `:results graphics :file my.png' is given. A crit= ical piece is that org-babel-insert-result needs to have a nil result to av= oid overwriting the file given in `:file my.png' as it seems to do for Neil= . I didn't see how that would happen for the example you gave. Sorry if this was misdirection. Chuck