From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: babel, matlab export plot to png fails Date: Tue, 15 Aug 2017 18:21:38 +0100 Message-ID: <87a830oifx.fsf@t3610> References: <35e27070f72a4368bdf61b972ddef4c6@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhfXI-0004na-Dd for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 13:21:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhfXE-0002mJ-DD for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 13:21:48 -0400 Received: from mail-he1eur01on0115.outbound.protection.outlook.com ([104.47.0.115]:45039 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhfXE-0002lo-09 for emacs-orgmode@gnu.org; Tue, 15 Aug 2017 13:21:44 -0400 In-Reply-To: <35e27070f72a4368bdf61b972ddef4c6@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Uwe Brauer's message of "Sun, 13 Aug 2017 08:33:34 +0000") 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain On Sunday, 13 Aug 2017 at 08:33, Uwe Brauer wrote: > I would like to execute some matlab code in org file (using GNU emacs 26 > and the git version of org mode) and save the result of the plot command > in a png file, so I tried [...] > #+begin_src matlab :results output latex :exports results :file testplot.png > t=[0:0.1:1]; > y=sin(t); > plot(t,y) > print -dpng testplot.png > #+end_src Maybe try with ":results file" instead of "output latex"? Works for octave (I don't have MATLAB). That is: #+begin_src matlab :results file :exports results :file testplot.png ... #+end_src -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWZMtogAKCRDIkZPY//z2 faOLAKCDpE+HTBRkWtPdqIsxuBfhEzpBMQCgmXzcNMdh3qPgFqa8TRg/+CZj35g= =rVft -----END PGP SIGNATURE----- --=-=-=--