From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aJz8Et7Ow16FZQAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 12:19:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yE7LDt7Ow14cZgAA1q6Kng (envelope-from ) for ; Tue, 19 May 2020 12:19:42 +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 9020294017B for ; Tue, 19 May 2020 12:19:41 +0000 (UTC) Received: from localhost ([::1]:57710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb1Dg-0002NF-Ih for larch@yhetil.org; Tue, 19 May 2020 08:19:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaa7U-0000R9-Vk for emacs-orgmode@gnu.org; Mon, 18 May 2020 03:23:29 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:39016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaa7T-0005lb-UB for emacs-orgmode@gnu.org; Mon, 18 May 2020 03:23:28 -0400 Received: by mail-pl1-x635.google.com with SMTP id s20so3871044plp.6 for ; Mon, 18 May 2020 00:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=n03jsHmXEIVOA6jWaKRzyNBq5PjrJr+dhrUvxSYoPQQ=; b=YDFE+kNaJaXoTFCKCczg49ahgSsgDQsdkRefh/F6DBmlkEz3qU0H1qJLUSc3icRF5q 3OwpQkUqqsbjIksnJrlfx2wj9Pkdv0NYiN8CIU+BdCeRHCChNAwmRRpklrCqqh/a3HrJ XgTA6aMxVYlDoQXvilTicNL72cHUcBiVv7T699DLwPJWCN4Rk6xGEMRb4t+RCoGqcAM5 ioD0OyTOAjGjkxmyTHKy3x6bM+ugUUjxTBQL3ujZ9PBYVrvGE9p4VwoExmIb8Q6ObTaN p3D6j0kqWij51tJ4tPfP4PZ9mXxUfMcIbO4KgEKY5f4uIur/K6H3ngD6B/rqczUTQfb3 9z2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=n03jsHmXEIVOA6jWaKRzyNBq5PjrJr+dhrUvxSYoPQQ=; b=NjP/Mn9FE4s4WW93mgxe9vxHFmPMW5nnyaA3suxeOZCuAWpMXdYRy10nWfHa+0HgCN lhLZdeovtgCnxcrEjY9hUYO+MnDxSq/mmX1V/2p1ifqtYtP4AqA7vFp3YYNQLi9rVKeI hrqlCx6xdZSZkP21THE8gPYm0sCu8ZO9/XUg3wZJ9C8Xq12jFiMcukSW91Rs+jOXqCcS mIR+WNaTPOnGIR4f13ji7hCjW1hCbkSJeGkVXwLmb2ZufazbjOocoyuo5hccpepOZ7BC o1yNdPUbpTs2L1IAtjJ6MCiGt1U+WCDyJ7MwET/TL8dhDjq6nO7j3eHpo7nAf0YWHpVj shMw== X-Gm-Message-State: AOAM5325i3tf2SD099UikGinYaYBlxXfN96XUR5OVOAjX63gCslWXzEB mVsi6VPBpky6lYeU3iENOad38eOd X-Google-Smtp-Source: ABdhPJyGyU30x6hPX7U9cAkZqMIdv/pfmt6xCgChBXPQD5SjWExHbdcvdVJSz6fpPvgOfNU2WUdYqg== X-Received: by 2002:a17:90a:1b44:: with SMTP id q62mr16865256pjq.79.1589786606175; Mon, 18 May 2020 00:23:26 -0700 (PDT) Received: from tranquillity (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id e13sm2928430pfm.103.2020.05.18.00.23.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2020 00:23:25 -0700 (PDT) Date: Mon, 18 May 2020 15:23:22 +0800 From: Timothy To: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Message-ID: <18E1FA44-710B-4340-8660-EBF7E0DB82D9@getmailspring.com> Subject: (Feature to Potentially Upstream) extending org-plot.el X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5ec237ea_70dbf228_8a9" Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x635.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Tue, 19 May 2020 08:17:10 -0400 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=pass header.d=gmail.com header.s=20161025 header.b=YDFE+kNa; dmarc=pass (policy=none) header.from=gmail.com; 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: 3.00 X-TUID: TttuLEEt/UYl --5ec237ea_70dbf228_8a9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Good news=21 This is the last of my =22things I want to contact the maili= ng list about=22 backlog =F0=9F=98=9B So, I recently wanted to be able to create a radar chart in org, using =23= +PLOT without a 500 character =23+PLOT line. I started with advice-override, but quickly realised it would be better j= ust 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 produc= e this plot https://media.githubusercontent.com/media/tecosaur/emacs-conf= ig/master/misc/document-format-comparison.png. (https://media.githubuserc= ontent.com/media/tecosaur/emacs-config/master/misc/document-format-compar= ison.png) =23+PLOT: transpose:yes type:radar min:0 max:4 file:=22misc/document-form= at-comparison.png=22 =7C =46ormat =7C =46ine-grained-control =7C Initial Effort =7C Syntax sim= plicity =7C Editor Support =7C Integrations =7C Ease-of-referencing =7C V= ersatility =7C =7C-------------------+----------------------+----------------+----------= ---------+----------------+--------------+---------------------+---------= ----=7C =7C Word =7C 2 =7C 4 =7C 4 =7C 2 =7C 3 =7C 2 =7C 2 =7C =7C LaTeX =7C 4 =7C 1 =7C 1 =7C 3 =7C 2 =7C 4 =7C 3 =7C =7C Org Mode =7C 4 =7C 2 =7C 3.5 =7C 1 =7C 4 =7C 4 =7C 4 =7C =7C Markdown =7C 1 =7C 3 =7C 3 =7C 4 =7C 3 =7C 3 =7C 1 =7C =7C Markdown + Pandoc =7C 2.5 =7C 2.5 =7C 2.5 =7C 3 =7C 3 =7C 3 =7C 2 =7C= 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 'cus= tom preamble' function. I'm also interested in refactoring the type:XXX bit so that it's more gen= eral, 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 functio= n could be nice (hough I imagine that example is far more complicated tha= n 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 t= his functionality upstreamed (assuming interest in doing so). Please let me know=21 All the best, tecosaur (p.s. as mentioned in my first email, I am going to try getting dragged d= own this rabbit-hole again till late june) --5ec237ea_70dbf228_8a9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Good news=21 This is the last of my =22things I want to contact the = mailing list about=22 backlog =F0=9F=98=9B

So, I recently wanted to be abl= e to create a radar chart in org, using =23+PLOT withou= t a 500 character =23+PLOT  line.
I started w= ith advice-override, but quickly realised it would be better just to swit= ch 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 bel= ow table and plot line I can produce this plot h= ttps://media.githubusercontent.com/media/tecosaur/emacs-config/master/mis= c/document-format-comparison.png.
=23+PLOT: transpose:yes ty=
pe:radar min:0 max:4 file:=22misc/document-format-comparison.png=22
=7C= =46ormat          &nbs= p; =7C =46ine-grained-control =7C Initial Effort =7C Syntax simplicity =7C= Editor Support =7C Integrations =7C Ease-of-referencing =7C Versatility = =7C
=7C-------------------+----------------------+----------------+---= ----------------+----------------+--------------+---------------------+--= -----------=7C
=7C Word        = ;      =7C      &n= bsp;           &nb= sp; 2 =7C          &nbs= p;   4 =7C         = ;        4 =7C    =           2 =7C  &= nbsp;         3 =7C  &n= bsp;           &nb= sp;    2 =7C       &nbs= p;   2 =7C
=7C LaTeX      &nbs= p;      =7C      &= nbsp;           &n= bsp; 4 =7C          &nb= sp;   1 =7C        &nbs= p;        1 =7C    = ;          3 =7C  =           2 =7C  &= nbsp;           &n= bsp;    4 =7C       &nb= sp;   3 =7C
=7C Org Mode      =     =7C        &nb= sp;           4 =7C&nbs= p;            = ; 2 =7C           =     3.5 =7C        = ;      1 =7C      =       4 =7C      &= nbsp;            4= =7C           4 =7C=7C Markdown          =7C&n= bsp;           &nb= sp;       1 =7C    &nbs= p;         3 =7C   = ;            =   3 =7C          &= nbsp;   4 =7C        &n= bsp;   3 =7C        &nb= sp;          3 =7C &nbs= p;         1 =7C
=7C Markdown = + Pandoc =7C          &= nbsp;       2.5 =7C    =         2.5 =7C    = ;           2.5 =7C&nbs= p;            = ; 3 =7C           = 3 =7C           &= nbsp;       3 =7C    &n= bsp;      2 =7C
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 poi= nt into the plot generation script where the user can add a 'custom pream= ble' 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 ca= n define a new export function could be nice (hough I imagine that exampl= e is far more complicated than this would be).

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

All the best,

tecosaur

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