emacs-orgmode
[Top][All Lists]
Advanced

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

Minor org-plot update, can now use with #+results


From: Timothy
Subject: Minor org-plot update, can now use with #+results
Date: Sat, 29 May 2021 00:23:40 +0800
User-agent: mu4e 1.4.15; emacs 28.0.50

Hi All,

A few days ago I pushed "org-plot: Use consistent method to find table"
https://code.orgmode.org/bzg/org-mode/commit/f72a658bd0 without
putting it through as a patch, as it's one of a few minor tweaks I've
made that I thought would be more noise than signal.

However, there's an implication to this change that I think deserves
mentioning (and will be in this months TMIO). This now means that you
can put a #+plot line before #+results and it will actually work!

I quite like this, hopefully some of you will find it of interest too :)

#+begin_src python
# pretend this is some profound source of information
return [[i, i^3 - 4*i^2 - 2*i] for i in range(5)]
#+end_src

#+plot: ind:1
#+RESULTS:
| 0 |  1 |
| 1 | -2 |
| 2 |  7 |
| 3 |  8 |
| 4 | 13 |

--
Timothy



reply via email to

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