From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uGvjFoc0xF79BgAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 19:33:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MDDYEoc0xF6+IgAAB5/wlQ (envelope-from ) for ; Tue, 19 May 2020 19:33:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C858C940429 for ; Tue, 19 May 2020 19:33:26 +0000 (UTC) Received: from localhost ([::1]:33324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb7zQ-00037J-B6 for larch@yhetil.org; Tue, 19 May 2020 15:33:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb7yu-000376-TC for emacs-orgmode@gnu.org; Tue, 19 May 2020 15:32:52 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:54088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb7yt-0007y0-KK for emacs-orgmode@gnu.org; Tue, 19 May 2020 15:32:52 -0400 Received: from [IPv6:2a01:e35:1398:10f0:8123:a8d0:87be:7c38] (unknown [IPv6:2a01:e35:1398:10f0:8123:a8d0:87be:7c38]) by smtp5-g21.free.fr (Postfix) with ESMTPS id 9DC975FF23 for ; Tue, 19 May 2020 21:32:47 +0200 (CEST) Subject: Re: (Feature to Potentially Upstream) extending org-plot.el To: emacs-orgmode@gnu.org References: <18E1FA44-710B-4340-8660-EBF7E0DB82D9@getmailspring.com> From: tbanelwebmin Message-ID: 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 MIME-Version: 1.0 In-Reply-To: <18E1FA44-710B-4340-8660-EBF7E0DB82D9@getmailspring.com> Content-Type: text/html; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.27.42.5; envelope-from=tbanelwebmin@free.fr; helo=smtp5-g21.free.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/19 15:32:47 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: p4U+YHqsbGCi

+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)