From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omid Subject: Re: gnuplot not working with babel Date: Sun, 01 Jun 2014 22:54:19 -0400 Message-ID: <538BE75B.8070905@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrIOO-0002xd-EI for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 22:54:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrIOE-0002Fu-I2 for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 22:54:32 -0400 Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:53391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrIOE-0002FI-Dx for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 22:54:22 -0400 Received: by mail-yh0-f51.google.com with SMTP id f73so3362647yha.10 for ; Sun, 01 Jun 2014 19:54:22 -0700 (PDT) Received: from [10.0.0.2] (host-207-254.fltavth.clients.pavlovmedia.com. [68.234.207.254]) by mx.google.com with ESMTPSA id x4sm18396821yhh.0.2014.06.01.19.54.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Jun 2014 19:54:21 -0700 (PDT) In-Reply-To: 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 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