|
From: | Dror Atariah |
Subject: | Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib |
Date: | Tue, 26 May 2015 15:26:24 +0200 |
With emacs -Q, and this org file:#+BEGIN_SRC emacs-lisp(org-babel-do-load-languages'org-babel-load-languages'((emacs-lisp . t)(python . t)))#+END_SRC#+RESULTS:#+BEGIN_SRC python :session with_matplotlib :results file :exports bothimport matplotlibmatplotlib.use('Agg')import matplotlib.pyplot as pltfig=plt.figure(figsize=(3,2)) # 4plt.plot([1,3,2]) # 3plt.savefig('myfig.png') # 2'myfig.png' # 1#+END_SRC#+RESULTS:[[file:myfig.png]]
[Prev in Thread] | Current Thread | [Next in Thread] |