all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-babel and matplotlib?
@ 2009-10-19  8:46 Piter_
  2009-10-19 18:51 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Piter_ @ 2009-10-19  8:46 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 144 bytes --]

Hi all.
If I understand correctly, one can make inline images using org-babel and
GNU-R. Will it work with matplotlib and python.
Thanks
Petro.

[-- Attachment #1.2: Type: text/html, Size: 157 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-babel and matplotlib?
  2009-10-19  8:46 org-babel and matplotlib? Piter_
@ 2009-10-19 18:51 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2009-10-19 18:51 UTC (permalink / raw)
  To: Piter_; +Cc: emacs-orgmode

Hi Petro,

Yes, this should be possible.  To force the resulting image to be
included in the org-mode file you should add "file" to your results
header argument, and ensure that your block of python code, generates
the file, saves the file, and returns the path to the file as the last
part of the code block.

something along the lines of...

#+begin_src python :results file
  import matplotlib
  ...
  generate file
  ...
  save file
  ...
  path to file
#+end_src

Best -- Eric

Piter_ <x.piter@gmail.com> writes:

> Hi all.
> If I understand correctly, one can make inline images using org-babel and GNU-R. Will it work with
> matplotlib and python.
> Thanks
> Petro.
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-10-19 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-19  8:46 org-babel and matplotlib? Piter_
2009-10-19 18:51 ` 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.