emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] text-only plots


From: Michael Brand
Subject: Re: [O] text-only plots
Date: Sun, 8 Dec 2013 13:28:09 +0100

On Sun, Dec 8, 2013 at 12:27 PM, Michael Brand
<address@hidden> 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: DejaVu_Sans_Mono.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]