From: tsd@tsdye.com (Thomas S. Dye)
To: ian@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: Babel: Processing Tables - Ignore Some Rows
Date: Tue, 30 Oct 2012 06:25:23 -1000 [thread overview]
Message-ID: <m1vcds9bbg.fsf@tsdye.com> (raw)
In-Reply-To: <508FFADC.8000607@wilkesley.net> (Ian Barton's message of "Tue, 30 Oct 2012 16:05:48 +0000")
Aloha Ian,
Will indexable variable values do what you want? Something like :var
data=monthly_total_mileage[0:-3,]?
hth,
Tom
Ian Barton <lists@wilkesley.net> 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
next prev parent reply other threads:[~2012-10-30 16:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 16:05 Babel: Processing Tables - Ignore Some Rows Ian Barton
2012-10-30 16:25 ` Thomas S. Dye [this message]
2012-10-31 15:46 ` Ian Barton
2012-10-31 16:02 ` Thomas S. Dye
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1vcds9bbg.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=ian@manor-farm.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.