[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] python/babel inline images
From: |
henry atting |
Subject: |
[O] python/babel inline images |
Date: |
Tue, 05 Jun 2012 12:30:05 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
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
- [O] python/babel inline images,
henry atting <=
Re: [O] python/babel inline images, Mikhail Titov, 2012/06/05