emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] babel, matlab export plot to png fails


From: Uwe Brauer
Subject: Re: [O] babel, matlab export plot to png fails
Date: Wed, 16 Aug 2017 12:28:38 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

   > 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]