From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: export inline image from source results? Date: Tue, 21 Aug 2012 13:20:34 -0600 Message-ID: <87boi4vypp.fsf@gmx.com> References: <87k3wsruvd.fsf@cica.cica> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3u1a-00053U-JV for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3u1Z-0004Dm-EZ for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:22:02 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:48907) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T3u1Z-0004Dc-6j for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 15:22:01 -0400 In-Reply-To: <87k3wsruvd.fsf@cica.cica> (Petro's message of "Tue, 21 Aug 2012 19:57:10 +0200") 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: Petro Cc: emacs-orgmode@gnu.org Petro writes: > Hi all. > I generate an image from python source like this: > _____________________________________________________ > #+BEGIN_SRC python :results output raw :export results > from pylab import figure, plot > import pylab as plt > import numpy as np > plt.ioff() > figure() > plot(np.random.rand(10),'o') > pic_name='fit_rates1.svg' > path_name='/home/petro/tmp/' > plt.savefig(path_name + pic_name) > print "[" + "[" + path_name + pic_name +"]]" > > #+END_SRC > > #+RESULTS: > [[/home/petro/tmp/fit_rates1.svg]] > > _____________________________________________________ > Can I export the result? Rigth now the image is exported only if I copy the image link and > paste it few lines below. Hi Petro, Is the link exported at all, or do you get no results export? You could add the following additional header argument to your code block to inform org-mode that the results are a link to a file. :file /home/petro/tmp/fit_rates1.svg Best, > > Thanks. > Petro > > -- Eric Schulte http://cs.unm.edu/~eschulte