all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (Feature to Potentially Upstream) extending org-plot.el
@ 2020-05-18  7:23 Timothy
  2020-05-19 19:32 ` tbanelwebmin
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy @ 2020-05-18  7:23 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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. (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)

[-- Attachment #2: Type: text/html, Size: 6160 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (Feature to Potentially Upstream) extending org-plot.el
  2020-05-18  7:23 (Feature to Potentially Upstream) extending org-plot.el Timothy
@ 2020-05-19 19:32 ` tbanelwebmin
  0 siblings, 0 replies; 2+ messages in thread
From: tbanelwebmin @ 2020-05-19 19:32 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/html, Size: 4806 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-19 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-18  7:23 (Feature to Potentially Upstream) extending org-plot.el Timothy
2020-05-19 19:32 ` tbanelwebmin

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.