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 17:48:15 +0000 Message-ID: <41D85352-2EB5-493C-9175-06AD02C843D5@ucsd.edu> References: <87shgveujl.fsf@mat.ucm.es> <5678702d-9fdc-74ff-443c-fa979185ffca@ossau.homelinux.net> <1F5D249B-61D1-490A-8C46-48543A021F15@ucsd.edu> <87mv6zh0kj.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]:56302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di2Qn-0003cp-7M for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 13:48:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di2Qj-0003ik-2T for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 13:48:37 -0400 Received: from iport-acv9-out.ucsd.edu ([132.239.0.167]:56959) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1di2QU-0003SV-U7 for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 13:48:32 -0400 In-Reply-To: <87mv6zh0kj.fsf@t3610> Content-Language: en-US Content-ID: 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 10:41 AM, Eric S Fraga wrote: >=20 > On Wednesday, 16 Aug 2017 at 17:25, Berry, Charles wrote: >=20 > [...] >=20 >> I do not have matlab, but looking at the code in ob-matlab.el and >> ob-octave.el, it seems that the usual header args should do: >>=20 >> : :results graphics :file testplot.png >=20 > This doesn't work for me, at least for octave. What version of org are > you using? >=20 org 9.0.9 and FWIW, I see this (gfx-file (ignore-errors (org-babel-graphical-output-file params))) (result (org-babel-octave-evaluate session (if gfx-file (mapconcat 'identity (list "set (0, \"defaultfigurevisible\", \"off\");" full-body (format "print -dpng %s" gfx-file)) "\n") full-body) in org-babel-execute:octave Chuck