all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* python/babel inline images
@ 2012-06-05 10:30 henry atting
  2012-06-05 12:46 ` Brett Viren
  2012-06-05 14:57 ` Eric Schulte
  0 siblings, 2 replies; 22+ messages in thread
From: henry atting @ 2012-06-05 10:30 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2012-06-08  2:18 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 10:30 python/babel inline images henry atting
2012-06-05 12:46 ` Brett Viren
2012-06-05 14:57 ` Eric Schulte
2012-06-05 22:34   ` William LÉCHELLE
2012-06-06 15:19     ` henry atting
2012-06-06 19:16       ` Mikhail Titov
2012-06-06 19:25         ` Eric Schulte
2012-06-06 19:32           ` Mikhail Titov
2012-06-07  8:43         ` henry atting
2012-06-07 15:09           ` Mikhail Titov
2012-06-06  0:59   ` Mikhail Titov
2012-06-06  5:19     ` Eric Schulte
2012-06-06 17:41       ` [babel] session initialization (was RE: python/babel inline images) Mikhail Titov
2012-06-06 19:01         ` Eric Schulte
2012-06-06 19:41           ` Mikhail Titov
2012-06-06 23:06             ` Mikhail Titov
2012-06-07 22:32               ` Mikhail Titov
2012-06-07 22:44                 ` Eric Schulte
2012-06-07 23:02                   ` Mikhail Titov
2012-06-08  1:56                     ` Mikhail Titov
2012-06-08  2:18                       ` Eric Schulte
2012-06-07 22:48             ` Eric Schulte

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.