emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Thierry Banel <tbanelwebmin@free.fr>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: text-only plots
Date: Sun, 8 Dec 2013 13:28:09 +0100	[thread overview]
Message-ID: <CALn3zoirUxZuaLMj45PHEYy8XcHgexJcqFa64LH51vcPMaArWw@mail.gmail.com> (raw)
In-Reply-To: <CALn3zoid_PU5yyB0ht63CNO2qFLG1up0Xv1pEkecxZ6hpnmjUg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

On Sun, Dec 8, 2013 at 12:27 PM, Michael Brand
<michael.ch.brand@gmail.com> wrote:
> I suggest to have also a unicode variant using
> http://en.wikipedia.org/wiki/Block_Elements

To make it more complete: Distinguish between the variant with
coordinate grid and the one continuous:

| year |  % | ascii    | grid (0 to 7 8th) | continuous (0 to 8 8th) |
|------+----+----------+-------------------+-------------------------|
| 2009 | 55 | WWWWWWl  | ▉▉▉▉▉▉▌           | ██████▋                 |
| 2010 | 54 | WWWWWWu  | ▉▉▉▉▉▉▍           | ██████▌                 |
| 2011 | 60 | WWWWWWW: | ▉▉▉▉▉▉▉▏          | ███████▎                |
| 2012 | 62 | WWWWWWW; | ▉▉▉▉▉▉▉▍          | ███████▌                |
#+TBLFM: $3 = '(orgtbl-ascii-draw $2 0 100) :: $4 =
'(orgtbl-uc-draw-grid $2 0 100) :: $5 = '(orgtbl-uc-draw-cont $2 0
100)

#+BEGIN_SRC emacs-lisp
  ;; orgtbl-uc-draw-grid
  [...]
  (make-string (floor column) ?\▉)
  (string (elt " ▏▎▍▌▋▊▉" (round (* (- column (floor column)) 7))))))))
  ;; orgtbl-uc-draw-cont
  [...]
  (make-string (floor column) ?\█)
  (string (elt " ▏▎▍▌▋▊▉█" (round (* (- column (floor column)) 8))))))))
#+END_SRC

Michael

[-- Attachment #2: DejaVu_Sans_Mono.png --]
[-- Type: image/png, Size: 16952 bytes --]

  reply	other threads:[~2013-12-08 12:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-07 19:48 text-only plots Thierry Banel
2013-12-08 11:00 ` Suvayu Ali
2013-12-08 11:27 ` Michael Brand
2013-12-08 12:28   ` Michael Brand [this message]
2013-12-08 12:58     ` Thierry Banel
2013-12-08 17:43       ` Thierry Banel
2013-12-08 19:48         ` Carsten Dominik
2013-12-08 23:10           ` Thierry Banel
2013-12-09 12:19             ` Suvayu Ali
2013-12-09 14:30               ` Ivan Andrus
2013-12-09 22:48                 ` Thierry Banel
2013-12-09 23:55                   ` Suvayu Ali
2013-12-10 22:24                     ` Thierry Banel
2013-12-08 22:16         ` Michael Brand
2013-12-08 23:15           ` Thierry Banel
2013-12-08 13:34   ` Achim Gratz

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=CALn3zoirUxZuaLMj45PHEYy8XcHgexJcqFa64LH51vcPMaArWw@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tbanelwebmin@free.fr \
    /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).