[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [Orgmode] Unable to capture the file name generated using matplo
From: |
Nick Dokos |
Subject: |
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib |
Date: |
Sat, 02 May 2015 13:09:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dror Atariah <address@hidden> writes:
> Consider the following example (from the documentation):
>
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
> #+begin_src python :session :results file
> import matplotlib
> matplotlib.use('Agg')
> import matplotlib.pyplot as plt
> fig=plt.figure(figsize=(3,2))
> plt.plot([1,3,2])
> fig.tight_layout()
> plt.savefig('images/myfig.pdf')
> 'images/myfig.pdf' # return this to org-mode
> #+end_src
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
>
> It should return something like
>
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
> #+RESULTS:
> [[file:images/myfig.pdf]]
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
>
> But for me it returns merely
>
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
> #+RESULTS:
> [[file:]]
> -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------
>
> That is, it doesn't capture the file name that should be the last evaluation.
>
> How can I solve this problem?
What version are you running?
For me, it works fine:
Org-mode version 8.3beta (release_8.3beta-1023-g49e054 @
/home/nick/elisp/org-mode/lisp/)
Nick
- [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/02
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib,
Nick Dokos <=
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Nick Dokos, 2015/05/02
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/05
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/23
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/25
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Ken Mankoff, 2015/05/25
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/25
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, John Kitchin, 2015/05/25
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/26
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Ken Mankoff, 2015/05/26
- Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib, Dror Atariah, 2015/05/26