From: "Eric Schulte" <schulte.eric@gmail.com>
To: Piter_ <x.piter@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel and matplotlib?
Date: Mon, 19 Oct 2009 12:51:38 -0600 [thread overview]
Message-ID: <m263abb4jp.fsf@gmail.com> (raw)
In-Reply-To: <6f4f96030910190146i63cc4e15w43d386f248669d3b@mail.gmail.com> (Piter's message of "Mon, 19 Oct 2009 10:46:44 +0200")
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
prev parent reply other threads:[~2009-10-19 18:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 8:46 org-babel and matplotlib? Piter_
2009-10-19 18:51 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m263abb4jp.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=x.piter@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).