emacs-orgmode
[Top][All Lists]
Advanced

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

Re: (Feature to Potentially Upstream) extending org-plot.el


From: tbanelwebmin
Subject: Re: (Feature to Potentially Upstream) extending org-plot.el
Date: Tue, 19 May 2020 21:32:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

+1


Le 18/05/2020 à 09:23, Timothy a écrit :
Good news! This is the last of my "things I want to contact the mailing list about" backlog 😛

So, I recently wanted to be able to create a radar chart in org, using #+PLOT without a 500 character #+PLOT  line.
I started with advice-override, but quickly realised it would be better just to switch out org-plot.el with a modified version, which can be found here: https://github.com/tecosaur/emacs-config/blob/master/lisp/org-plot.el

As this currently stands, with the below table and plot line I can produce this plot https://media.githubusercontent.com/media/tecosaur/emacs-config/master/misc/document-format-comparison.png.
#+PLOT: transpose:yes type:radar min:0 max:4 file:"misc/document-format-comparison.png"
| Format            | Fine-grained-control | Initial Effort | Syntax simplicity | Editor Support | Integrations | Ease-of-referencing | Versatility |
|-------------------+----------------------+----------------+-------------------+----------------+--------------+---------------------+-------------|
| Word              |                    2 |              4 |                 4 |              2 |            3 |                   2 |           2 |
| LaTeX             |                    4 |              1 |                 1 |              3 |            2 |                   4 |           3 |
| Org Mode          |                    4 |              2 |               3.5 |              1 |            4 |                   4 |           4 |
| Markdown          |                    1 |              3 |                 3 |              4 |            3 |                   3 |           1 |
| Markdown + Pandoc |                  2.5 |            2.5 |               2.5 |              3 |            3 |                   3 |           2 |
The colours are a doom-specific bit, because I draw them from the current doom theme. I figure this could just be replaced with a general purpose  entry point into the plot generation script where the user can add a 'custom preamble' function.

I'm also interested in refactoring the type:XXX bit so that it's more general, less hardcoded. I don't know what may be involved, but I'm thinking something similar to org export when you can define a new export function could be nice (hough I imagine that example is far more complicated than this would be).

I'm hoping that someone may be interested enough to provide feedback, and idealy help me extend org-plot in this manner, with the goal of having this functionality upstreamed (assuming interest in doing so).
Please let me know!

All the best,

tecosaur

(p.s. as mentioned in my first email, I am going to try getting dragged down this rabbit-hole again till late june)


reply via email to

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