From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: graphing from org-tables Date: Mon, 28 Jul 2008 14:00:27 -0700 Message-ID: <82C4E22E-30F9-4018-AACC-77F55C2841C6@uva.nl> References: <4889f6f8.29578c0a.3e24.ffff8395@mx.google.com> <20080725162527.GA54528@yog-sothoth.mohorovi.cc> <488a2450.1e078e0a.2bc0.181f@mx.google.com> <488b7c9b.14be600a.11cc.ffff9150@mx.google.com> <9629760B-7606-42FD-B625-FAC44490221C@uva.nl> <488dd6f3.38e1220a.0b22.14a9@mx.google.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNZpa-0005iA-7G for emacs-orgmode@gnu.org; Mon, 28 Jul 2008 17:00:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNZpZ-0005hp-HK for emacs-orgmode@gnu.org; Mon, 28 Jul 2008 17:00:33 -0400 Received: from [199.232.76.173] (port=54610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNZpZ-0005hb-AB for emacs-orgmode@gnu.org; Mon, 28 Jul 2008 17:00:33 -0400 Received: from py-out-1112.google.com ([64.233.166.178]:9940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNZpY-0002kg-V7 for emacs-orgmode@gnu.org; Mon, 28 Jul 2008 17:00:33 -0400 Received: by py-out-1112.google.com with SMTP id p76so2594388pyb.1 for ; Mon, 28 Jul 2008 14:00:31 -0700 (PDT) In-Reply-To: <488dd6f3.38e1220a.0b22.14a9@mx.google.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org-mode On Jul 28, 2008, at 7:26 AM, Eric Schulte wrote: > 3) Currently I find it very useful to be able to see an initial plot > of a table with a single command, however there should be a sliding > scale from ease of plotting to greater control over the final plot. > Maybe through specification of gnuplot options through properties, > or simply specification of a gnuplot script. First of all, I do believe it would be good to move the plotting settings to outside the table, either before or after. I can see good ways to specify parameters for a plot that would be quite consistent with how Org deals with such things in similar situations. 1. A special comment line in the buffer, directly before the table, like #+PLOT: table-to-gnuplot :xcol 1 :ycols (2 4 5 6) :title "Some string" or #+PLOT: table-to-R :script "/path/to/script" The command can read these by macthing (if (looking-at "#+PLOT: +\\([^ \t\r\n]+\\)\\( +.*\\)?") (let* ((func (intern (match-string 1))) (params-plist (if (match-end 2) (read (concat "(" (match-string 2 format) ")"))))) 2. Use inherited properties to specify plotting parameters in a tree.