From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: plotting tables Date: Sun, 24 Mar 2013 14:44:12 +0800 Message-ID: <87obe9fgar.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJeZr-0008G5-6I for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 02:38:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJeZo-0005F8-L3 for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 02:38:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:33172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJeZo-0005Eq-Eh for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 02:38:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UJea6-0007Dr-V9 for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 07:39:02 +0100 Received: from 114.250.112.76 ([114.250.112.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Mar 2013 07:39:02 +0100 Received: from eric by 114.250.112.76 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Mar 2013 07:39:02 +0100 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: emacs-orgmode@gnu.org I'm trying to get my head around plotting data from org tables, for use in LaTeX exports. I've been looking at these two pages: http://orgmode.org/worg/org-tutorials/org-plot.html http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html As far as I can tell, there are two general approaches. One is an org table with some #+PLOT declarations, and when I call `org-plot/gnuplot' on it, gnuplot processes the table and shows it to me. Presumably I can make it save to a file instead, I haven't investigated that yet. The other approach seems to be using a named table, and then a gnuplot source block that accepts the table data as a variable. In this case you're writing an actual gnuplot script, rather than feeding gnuplot options into a #+PLOT line. My questions: 1. Are these really mutually incompatible approaches, as they appear to be? 2. What's my best option if I want the following scenario: I start with an org file containing an org table, call `org-latex-export-to-pdf' on that file, get a coffee, and come back to find a nice pdf containing just the plotted graph (no table). Can someone show me just the barest example? 3. I've been learning the tikz LaTeX package and am very impressed. Has anyone used tikz/pgfplots with org? In return, I promise to add a very hand-holdy explanation to worg, provided that there isn't already one there that I missed. Thanks, Eric