emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Petro <x.piter@gmail.com>
To: emacs-orgmode@gnu.org
Subject: export inline image from source results?
Date: Tue, 21 Aug 2012 19:57:10 +0200	[thread overview]
Message-ID: <87k3wsruvd.fsf@cica.cica> (raw)

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.
Thanks.
Petro

             reply	other threads:[~2012-08-21 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 17:57 Petro [this message]
2012-08-21 19:20 ` export inline image from source results? Eric Schulte
2012-08-21 20:41   ` Petro

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=87k3wsruvd.fsf@cica.cica \
    --to=x.piter@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).