emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: "Garreau, Alexandre" <galex-713@galex-713.eu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org-plot/org-babel-gnuplot not working
Date: Tue, 4 Nov 2014 18:42:59 -0600	[thread overview]
Message-ID: <CA+M2ft9+E3NCOghGgkUHLpw0WBEs0yqGG83GTouSH1CepDTOsA@mail.gmail.com> (raw)
In-Reply-To: <lh0zuvzzzzzz.gos.xxuns.g6.gal@galex-713.eu>

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

On Tue, Nov 4, 2014 at 6:33 PM, Garreau, Alexandre
<galex-713@galex-713.eu> wrote:
> Le 04/11/2014 à 03h47, John Hendy a écrit :
>> Could you post the gnuplot/babel relevant stuff from your .emacs?
>
> This:
>
> #+BEGIN_SRC emacs-lisp
> ;; active Babel languages
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((gnuplot . t)))
> ;; add additional languages with '((language . t)))
> #+END_SRC
>
> Of course it’s not enough. It doesn’t work. I saw this here:
> <http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html>
> (got the link on #org-mode asking for help).

What's not enough? The docs also state (a bit above the babel lines):

#+begin_quote
Babel support for gnuplot requires that gnuplot be installed on your
system, along with gnuplot.el, an Emacs major mode for interacting
with gnuplot. You can install gnuplot.el with ELPA.
#+end_quote

From my min-config, you can see that enabling gnuplot in babel and
pointing to gnuplot.el are enough. Is this what you mean (that you
need gnuplot.el + the babel lines)?

> Le 04/11/2014 à 04h48, John Hendy a écrit :
>> Just took a look at the worg page and gave it a whirl in the style of
>> Org 8.x. Indeed, the babel/setup section is oudated, and I'm not sure
>> if 7.9.3f is on the "old style" or new style. I thought there was a
>> sort of "pre-8.0" version of Org that still adhered to the newer
>> syntax. In any case, take a look at the attached .org file with my
>> minimal setup which works successfully for me. Hopefully it's
>> self-explanatory. I attached my pdf export as well.
>
> I already tried to eval your code, and it… oh… it turns out it works…
> but… it’s the same that mine in my .emacs.d/init.el.

You mean you didn't change your .init.el and yet it began working when
the exact same setup was previously not working?

> /And then, once more, it suddenly worked without any explanation/
>
> Ok it works it’s great. Does any plot previewing exist? I mean, with the
> image *in* the buffer, like for LaTeX preview feature (maybe I should
> ask in a separate mail…)?

See org-toggle-inline-images:
- http://orgmode.org/manual/Handling-links.html#fnd-6

After C-c C-c on both blocks in the test file I sent (you need the the
resultant image links in the file), I did C-c C-x C-v per the manual
and get the attached as the result.


Best regards,
John

[-- Attachment #2: 2014-11-04_184127.png --]
[-- Type: image/png, Size: 59111 bytes --]

  reply	other threads:[~2014-11-05  0:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04  1:44 Org-plot/org-babel-gnuplot not working Garreau, Alexandre
2014-11-04  2:47 ` John Hendy
2014-11-04  3:48 ` John Hendy
2014-11-05  0:33   ` Garreau, Alexandre
2014-11-05  0:42     ` John Hendy [this message]
2014-11-05  0:57       ` Garreau, Alexandre

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=CA+M2ft9+E3NCOghGgkUHLpw0WBEs0yqGG83GTouSH1CepDTOsA@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=galex-713@galex-713.eu \
    /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).