From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting Subject: python/babel inline images Date: Tue, 05 Jun 2012 12:30:05 +0200 Message-ID: <87pq9egifm.fsf@bye.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbr6Y-0008VF-4j for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 06:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbr6T-0005Cb-1E for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 06:35:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:52621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbr6S-0005Bz-QV for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 06:35:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sbr6O-00075c-5e for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 12:35:04 +0200 Received: from dslb-188-103-165-102.pools.arcor-ip.net ([188.103.165.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 12:35:04 +0200 Received: from nsmp_06 by dslb-188-103-165-102.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 12:35:04 +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: emacs-orgmode@gnu.org Hi, I do not succeed in generating an inline image as a result of a python code block. The code itself works, C-c C-c generates the according picture, but only in my home directory. The code block: -*- org-babel-python-command: "python3" -*- #+begin_src python import csv import matplotlib.pyplot as plot x = [] y = [] csv_reader = csv.reader(open('csv_data.csv')) for line in csv_reader: x.append(int(line[0])) y.append(float(line[1])) plot.plot(x, y, label=r'exp', color='green') plot.legend(loc='lower right') plot.savefig("exp_csv.svg") #+end_src It tried different combinations of `:exports results', `:results file', `:file filename' -- http://literaturlatenight.de