From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: [babel] Producing figures from octave Date: Wed, 31 Aug 2011 14:36:09 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QysSW-0001QB-7g for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 17:36:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QysSV-0004zc-0B for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 17:36:32 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:63721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QysSU-0004zN-Rt for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 17:36:30 -0400 Received: by ewy9 with SMTP id 9so920865ewy.0 for ; Wed, 31 Aug 2011 14:36:29 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Emacs-orgmode@gnu.org" Cc: davison@stats.ox.ac.uk Dan Davison has a brief worg tutorial on using babel with octave at http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.html Amongst other things, he offers the following example block for producing a figure: #+begin_src octave :output file :file chart.png figure( 1, "visible", "off" ); sombrero; print -dpng chart.png #+end_src #+results: [[file:chart.png]] The figure seems to be (briefly) created (it pops up on my screen if I change 'figure( 1, "visible", "off" );' to 'figure( 1, "visible", "on");'; also the code provided does the right thing in the octave interpreter). However, rather than delivering the png figure, the file chart.png consists solely of the string "/usr/share/octave/packages/3.2". I'm not sure where this string is coming from: it's *not* part of the stuff that octave writes to stdout when the interpreter is invoked (my first guess). I suspect that the options that need to be offered on the #+begin_src line have changed somehow since that worg page was last updated at the end of April of this year, but don't really know. Help! -Ethan -- Ethan Ligon, Associate Professor Agricultural & Resource Economics University of California, Berkeley