emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export image generated by python code.
@ 2012-04-30 13:54 Khoroshyy Petro
  2012-04-30 15:14 ` Darlan Cavalcante Moreira
  0 siblings, 1 reply; 3+ messages in thread
From: Khoroshyy Petro @ 2012-04-30 13:54 UTC (permalink / raw)
  To: org-mode mailing list

Hi all.
After some struggle, I can see inline pictures  in my org file.
The problem was python execution. If I execure the code in python-mode
shell, it generates a picture.
I the code executed via C-c C-c, the output picture file is empty.
I still do not know how to solve it.

And I have encountered another problem. The 'result' image is not
exported, even if I add play with :export option.

Any recommendations how to solve those?
Thanks
Petro
#+BEGIN_SRC python :file estimated_spectra_cl.png
  import pylab
  from scipy import optimize
  import numpy as np
  import pylab as plt
.....
  plt.figure()
  plt.plot(spectra[:,0],spectra[:,1:])
  plt.grid(1)
  # plt.show()
  plt.savefig("estimated_spectra_cl.png",dpi=100)
#+END_SRC

#+RESULTS:
[[file:estimated_spectra_cl.png]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-02 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-30 13:54 export image generated by python code Khoroshyy Petro
2012-04-30 15:14 ` Darlan Cavalcante Moreira
2012-05-02 19:10   ` Khoroshyy Petro

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).