emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mario Frasca <mario@anche.no>
To: emacs-orgmode@gnu.org
Subject: Re: a couple of items
Date: Thu, 4 Jun 2020 16:29:19 -0500	[thread overview]
Message-ID: <aeb643be-7697-01c7-f873-868e1d74cfb8@anche.no> (raw)
In-Reply-To: <87a71jcaih.fsf@ucl.ac.uk>

hi.  thank you.  seeing hand written code in the target language is 
always useful, when writing a translator.  :+1:  :-)

On 04/06/2020 06:53, Eric S Fraga wrote:
> On Wednesday,  3 Jun 2020 at 16:06, Mario Frasca wrote:
>> consider this table, partially from the Wikipedia:
> If you are willing to invoke gnuplot directly, using a src block, the
> following is a start towards what you might want.  Proper nice looking
> colours etc. left as an exercise for the reader... ;-)
>
> #+begin_src org
>    ,#+name: table
>    | Region         |   Area | Production | Productivity |
>    |                |  (Mha) |  (Mtonnes) |  (tonnes/ha) |
>    |----------------+--------+------------+--------------|
>    | Western Europe |  2.490 |      5.730 |    2.3012048 |
>    | North America  |  2.960 |      5.756 |    1.9445946 |
>    | South America  |  0.102 |      0.196 |    1.9215686 |
>    | Middle East    |  4.462 |      6.950 |    1.5575975 |
>    | North Africa   |  3.290 |      3.214 |    0.9768997 |
>    | Others         |  3.756 |      3.540 |    0.9424920 |
>    |----------------+--------+------------+--------------|
>    | World          | 17.060 |     25.360 |    1.4865181 |
>    ,#+TBLFM: $4=$3/$2
>
>    ,#+begin_src gnuplot :var data=table[3:8,] :file plot.pdf
>      reset
>      set term pdfcairo color
>      set xtics rotate 90
>      set style fill solid border lt 1
>      plot data using 2:xticlabels(1) with histogram linecolor "blue" title 'Area', \
>           '' using 3 with histogram lt 1 linecolor "red" title 'Production', \
>           '' using 4 with points pt 5 linecolor black title 'Productivity'
>    ,#+end_src
> #+end_src
>


  reply	other threads:[~2020-06-04 21:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 21:06 a couple of items Mario Frasca
2020-06-04 11:53 ` Eric S Fraga
2020-06-04 21:29   ` Mario Frasca [this message]
2020-06-05 11:38     ` Eric S Fraga
2020-06-05 12:09       ` TEC
2020-06-05 12:24         ` Eric S Fraga

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aeb643be-7697-01c7-f873-868e1d74cfb8@anche.no \
    --to=mario@anche.no \
    --cc=emacs-orgmode@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).