From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting <nsmp_06@online.de> 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: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([208.118.235.92]:57488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geo-emacs-orgmode@m.gmane.org>) 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 <geo-emacs-orgmode@m.gmane.org>) 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 <geo-emacs-orgmode@m.gmane.org>) 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 <geo-emacs-orgmode@m.gmane.org>) 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 <emacs-orgmode@gnu.org>; 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 <emacs-orgmode@gnu.org>; Tue, 05 Jun 2012 12:35:04 +0200 List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=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