From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Inline plot with matplotlib Date: Mon, 09 Sep 2013 17:05:35 -0600 Message-ID: <87r4cxppds.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJAWJ-0007zb-A6 for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 19:05:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJAWE-0001sA-5a for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 19:05:23 -0400 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:39415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJAWD-0001rB-TZ for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 19:05:18 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so6697369pbb.5 for ; Mon, 09 Sep 2013 16:05:16 -0700 (PDT) In-Reply-To: (Johan Ekh's message of "Tue, 10 Sep 2013 00:27:36 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: Johan Ekh Cc: "emacs-orgmode@gnu.org" Johan Ekh writes: > Hi all, > I would like to create a plot with matplotlib and have it exported to a > beamer presentation without storing the plot in a file. Is that possible? > Can someone point me to an example or a good starting point? > > BR / Johan If matplotlib supports tikz or raw tex output formats, you could use a python code block, e.g., something like the following. #+begin_src python :results latex # Python code to print latex code for a graph #+end_src -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D