From: Ethan Ligon <ligon@are.berkeley.edu>
To: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Cc: davison@stats.ox.ac.uk
Subject: [babel] Producing figures from octave
Date: Wed, 31 Aug 2011 14:36:09 -0700 [thread overview]
Message-ID: <CAJ+2YJMD=G9YxFkKYWjdU=1GmE5wdFH+3yD1PEUuc9o4TpuSMA@mail.gmail.com> (raw)
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
next reply other threads:[~2011-08-31 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 21:36 Ethan Ligon [this message]
2011-09-01 3:47 ` [babel] Producing figures from octave Dan Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ+2YJMD=G9YxFkKYWjdU=1GmE5wdFH+3yD1PEUuc9o4TpuSMA@mail.gmail.com' \
--to=ligon@are.berkeley.edu \
--cc=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.