From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: babel, matlab export plot to png fails Date: Wed, 16 Aug 2017 12:28:38 +0000 Message-ID: <87d17vd7d5.fsf@mat.ucm.es> References: <87shgveujl.fsf@mat.ucm.es> <5678702d-9fdc-74ff-443c-fa979185ffca@ossau.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhxSv-0001ME-4g for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhxSs-0007md-0U for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:30:29 -0400 Received: from [195.159.176.226] (port=52564 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhxSr-0007mF-PX for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:30:25 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhxSW-00039r-Md for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 14:30:04 +0200 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 > On 13/08/17 10:33, Uwe Brauer wrote: > I guess the problem is that the Matlab line "print -dpng testplot.png" > is correctly writing the plot to testplot.png, as you want, but then > org-mode is overwriting that file because of the ":file testplot.png". > I would try deleting ":file testplot.png". Yes something like this. > The meaning of ":results output" may be a bit language-dependent - I > don't know org-mode well enough to be sure about that yet - but in > general I would expect it to consist of the standard output of those > commands. So, for example, if you type "print -dpng testplot.png" and > Matlab responds with "Generated 'testplot.png'", I would expect > ":results output" to contain "Generated 'testplot.png'", not the PNG > data. What is confusing me is that the testplot.png case does not always contain ascii lines but sometimes is classified as corrupted png. (Using the linux display command, or sometimes just as data using the linux file command) > Regards - Neil