From mboxrd@z Thu Jan 1 00:00:00 1970 From: Khoroshyy Petro Subject: export image generated by python code. Date: Mon, 30 Apr 2012 15:54:34 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOr3p-0002gN-9F for emacs-orgmode@gnu.org; Mon, 30 Apr 2012 09:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOr3l-0008Dy-Cu for emacs-orgmode@gnu.org; Mon, 30 Apr 2012 09:54:40 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:41377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOr3k-0008CL-TY for emacs-orgmode@gnu.org; Mon, 30 Apr 2012 09:54:37 -0400 Received: by lbjn8 with SMTP id n8so1794557lbj.0 for ; Mon, 30 Apr 2012 06:54:34 -0700 (PDT) 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: 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]]