emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Minor org-plot update, can now use with #+results
@ 2021-05-28 16:23 Timothy
  2021-05-28 16:42 ` Colin Baxter
  2021-05-28 17:57 ` Greg Minshall
  0 siblings, 2 replies; 5+ messages in thread
From: Timothy @ 2021-05-28 16:23 UTC (permalink / raw)
  To: org-mode-email

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


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

end of thread, other threads:[~2021-05-28 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 16:23 Minor org-plot update, can now use with #+results Timothy
2021-05-28 16:42 ` Colin Baxter
2021-05-28 16:51   ` Timothy
2021-05-28 17:10     ` Colin Baxter
2021-05-28 17:57 ` Greg Minshall

Code repositories for project(s) associated with this inbox:

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).