From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Babel: Processing Tables - Ignore Some Rows Date: Wed, 31 Oct 2012 06:02:11 -1000 Message-ID: References: <508FFADC.8000607@wilkesley.net> <509147B9.6030200@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTakQ-0000o4-Fz for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 12:02:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTakG-0003em-II for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 12:02:30 -0400 Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:35907) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TTakG-0003dy-8w for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 12:02:20 -0400 In-Reply-To: <509147B9.6030200@wilkesley.net> (Ian Barton's message of "Wed, 31 Oct 2012 15:46:01 +0000") 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: ian@manor-farm.org Cc: emacs-orgmode@gnu.org They are documented here: http://orgmode.org/manual/var.html#var, a bit more than halfway down the long page. All the best, Tom Ian Barton writes: > Thanks Thomas that works fine. Can you point me to where indexable > variables are documented, as my feeble search skills seem to be > faiing. > > Ian. > > On 30/10/12 16:25, Thomas S. Dye wrote: >> Aloha Ian, >> >> Will indexable variable values do what you want? Something like :var >> data=monthly_total_mileage[0:-3,]? >> >> hth, >> Tom >> >> >> Ian Barton writes: >> >>> I am using gnuplot to plot some data from a table: >>> >>> #+tblname: monthly_total_mileage >>> |-------+----------| >>> | Month | Distance | >>> |-------+----------| >>> | Jan | 272.04 | >>> | Feb | 317.11 | >>> | Mar | 354.27 | >>> | Apr | 288.21 | >>> | May | 488.35 | >>> | Jun | 444.92 | >>> | Jul | 497.21 | >>> | Aug | 625.35 | >>> | Sep | 821 | >>> | Oct | 717.9 | >>> | Nov | | >>> | Dec | | >>> |-------+----------| >>> | Total | 4826.36 | >>> |-------+----------| >>> >>> >>> #+begin_src gnuplot :var data=monthly_total_mileage :file >>> ./monthly_total_mileage.png >>> reset >>> >>> set boxwidth 0.5 >>> set xlabel 'month' >>> set ylabel 'distance, km' >>> >>> plot data u 2:xticlabels(1) notitle with boxes fs solid 0.5 >>> #+end_src >>> >>> Ideally I want Babel to ignore the Totals row, so it doesn't get >>> processed and plotted by gnuplot. Is there any way of doing this? I want >>> to publish the data in several formats, some of which require me to >>> display the total and some of which don't. >>> >>> Any other workarounds gratefully accepted. >>> >>> Ian. >>> >>> >> > > > -- Thomas S. Dye http://www.tsdye.com