emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Butz <erik.butz@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: using gnuplot dumb terminal
Date: Tue, 23 Feb 2010 00:38:10 +0100	[thread overview]
Message-ID: <b230c52b1002221538q54ea97e7n13be9f78412bb71a@mail.gmail.com> (raw)

Hi all,

thanks for this extremely versatile emacs mode. I am only beginning to
discover all the features available.

When using the org-plot/gnuplot interface, a possible use-case came to
my mind. In gnuplot one can have a primitive ascii dump of the plot,
using

set terminal dump

with or without an output file. I was wondering if it would be
possible to include the output of this as plot into an org document.

I can achieve basically this, by having something like

#+PLOT: set:"term dumb" file:"plot.plt"
|   a |   b |   c |
|-----+-----+-----|
| 200 | 100 | 300 |
| 200 | 200 | 400 |

#+TBLFM: $3=$1+$2

and then simply input 'plot.plt' into the document which looks
something like this in this case (don't know if the ascii art will
survive)

    400 ++------------+-------------+------------+-------------+---------$$$$$
        +             +             +            +             $$$$$a$****** +
        |                                            $$$$$$$$$$     b ###### |
    350 ++                                 $$$$$$$$$$               c $$$$$$++
        |                        $$$$$$$$$$                                  |
        |              $$$$$$$$$$                                            |
        |    $$$$$$$$$$                                                      |
    300 $$$$$                                                               ++
        |                                                                    |
        |                                                                    |
    250 ++                                                                  ++
        |                                                                    |
        |                                                                    |
    200 **********************************************************************
        |                                                      ##########    |
        |                                            ##########              |
        |                                  ##########                        |
    150 ++                       ##########                                 ++
        |              ##########                                            |
        +    ##########             +            +             +             +
    100 #####---------+-------------+------------+-------------+------------++
        0            0.2           0.4          0.6           0.8            1

More complicated things would then of course be to link the plot to
the table, and to be able to issue update commands if the table data
have changed etc.
Also when exporting to latex, one could simply change the mode of
gnuplot to eps/jpg and include the graphics in the exported document.

I have not found the 'dumb' mode mentioned anywhere in the forum, so I
was curious if anybody possibly thought about something like this (or
has done it already??), or had ideas on how to implement it (don't
know lisp myself, unfortunately).

Should this not be possible it is not really a problem, since there is
a way to do this as described above, but I found this a possibly nice
feature, as it would allow for simple plots while keeping the org
document to be overhead-free ascii.

Cheers and thanks,

Erik

                 reply	other threads:[~2010-02-22 23:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=b230c52b1002221538q54ea97e7n13be9f78412bb71a@mail.gmail.com \
    --to=erik.butz@googlemail.com \
    --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).