emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode@gnu.org
Subject: gnuplot not working with babel
Date: Sun, 1 Jun 2014 21:48:37 -0500	[thread overview]
Message-ID: <CAFAhFSUddnWhCLtc-C8p_LyRNdcQ4Jar=61+QCm4mGu8wWYcMg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

I'm just starting out with babel and can't get the example code to run (
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-4)
:

#+begin_src gnuplot :exports code :file file.png
reset

set title "Putting it All Together"

set xlabel "X"
set xrange [-8:8]
set xtics -8,2,8

set ylabel "Y"
set yrange [-20:70]
set ytics -20,10,70

f(x) = x**2
g(x) = x**3
h(x) = 10*sqrt(abs(x))

plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
#+end_src

This produces

   org-babel-execute:gnuplot: Cannot open load file: no such file or
directory, gnuplot

Also, I tried a straight org-plot/gnuplot call while the cursor was in a
table with similar results:

   org-plot/gnuplot: Cannot open load file: no such file or directory,
gnuplot

I have gnuplot installed and the above code produces the expected output
graphic when run from the command line. I'm on U14.10, Emacs24.3.50.1, and
Org 8.2.3a.

Also, I'm tired of typing the #+begin_src ... #+end_src block every time.
Is there a quicker key binding for this?

LB

[-- Attachment #2: Type: text/html, Size: 1617 bytes --]

             reply	other threads:[~2014-06-02  2:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02  2:48 Lawrence Bottorff [this message]
2014-06-02  2:54 ` gnuplot not working with babel Omid
2014-06-02  3:01 ` Omid

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFAhFSUddnWhCLtc-C8p_LyRNdcQ4Jar=61+QCm4mGu8wWYcMg@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).