From: Nick Dokos <nicholas.dokos@hp.com>
To: Richard Stanton <stanton@haas.berkeley.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: How to get graphs to display inline (immediately upon creation)?
Date: Mon, 10 Sep 2012 01:12:57 -0400 [thread overview]
Message-ID: <20333.1347253977@alphaville> (raw)
In-Reply-To: Message from Richard Stanton <stanton@haas.berkeley.edu> of "Sun, 09 Sep 2012 19:39:15 PDT." <40C7B1BFC291ED4E9D10436D07736A3347089E65C1@EXMAIL7.haas.uc.berkeley.edu>
Richard Stanton <stanton@haas.berkeley.edu> wrote:
> I'm using Org-mode version 7.9.1 (release_7.9.1-154-g659be3 @ c:/emacs/site=
> -lisp/org-mode/lisp/)
>
> I'd like to use org mode to display inline graphs, but am having some troub=
> le. Here's a sample org file (with results block), which creates a single p=
> lot using R:
>
> -----------------
>
> #+TITLE: Test plot
> #+PROPERTY: session *R*
>
> * Sample plot in R
>
> #+begin_src R :exports both :results graphics :file img.png
> hist(rnorm(40))
> #+end_src
>
> #+RESULTS:
> [[file:img.png]]
>
> ---------------
>
> I'd like the graph to appear inline immediately when I press C-c C-c to exe=
> cute the code block. However, all I get is the result block shown. I can us=
> e=20
>
> #+STARTUP: inlineimages
>
> to show the graph when I first load the org file, and I can press C-c C-x C=
> -v to turn on inline displaying if it's off, but even when it's turned on, =
> the graph doesn't display inline if I press C-c C-c again. In fact, I then =
> have to press C-c C-x C-v *twice* (once to turn inline display off, and onc=
> e to turn it back on again) to get the graph to display.
>
> How can I get inline graphs to display inline the moment they've been creat=
> ed?
>
Untested.
Maybe add org-redisplay-inline-images to org-babel-after-execute-hook?
Nick
next prev parent reply other threads:[~2012-09-10 5:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 2:39 How to get graphs to display inline (immediately upon creation)? Richard Stanton
2012-09-10 5:12 ` Nick Dokos [this message]
2012-09-10 5:46 ` Richard Stanton
2012-09-10 5:51 ` Richard Stanton
2012-09-18 14:28 ` Bastien
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=20333.1347253977@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=stanton@haas.berkeley.edu \
/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.