* gnuplot not working with babel
@ 2014-06-02 2:48 Lawrence Bottorff
2014-06-02 2:54 ` Omid
2014-06-02 3:01 ` Omid
0 siblings, 2 replies; 3+ messages in thread
From: Lawrence Bottorff @ 2014-06-02 2:48 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnuplot not working with babel
2014-06-02 2:48 gnuplot not working with babel Lawrence Bottorff
@ 2014-06-02 2:54 ` Omid
2014-06-02 3:01 ` Omid
1 sibling, 0 replies; 3+ messages in thread
From: Omid @ 2014-06-02 2:54 UTC (permalink / raw)
To: emacs-orgmode
Hello,
For your second question, please see Easy Templates as one solution:
http://orgmode.org/manual/Easy-Templates.html
Omid
Sent from my Emacs
On 06/01/2014 10:48 PM, Lawrence Bottorff wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnuplot not working with babel
2014-06-02 2:48 gnuplot not working with babel Lawrence Bottorff
2014-06-02 2:54 ` Omid
@ 2014-06-02 3:01 ` Omid
1 sibling, 0 replies; 3+ messages in thread
From: Omid @ 2014-06-02 3:01 UTC (permalink / raw)
To: emacs-orgmode
And searching with the keywords from the error you're getting, your
first problem is solved by installing gnuplot.el (to drive gnuplot
inside Emacs):
https://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00563.html
Omid
Sent from my Emacs
On 06/01/2014 10:48 PM, Lawrence Bottorff wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-02 3:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 2:48 gnuplot not working with babel Lawrence Bottorff
2014-06-02 2:54 ` Omid
2014-06-02 3:01 ` Omid
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.