* 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
* Re: Minor org-plot update, can now use with #+results
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:57 ` Greg Minshall
1 sibling, 1 reply; 5+ messages in thread
From: Colin Baxter @ 2021-05-28 16:42 UTC (permalink / raw)
To: Timothy; +Cc: org-mode-email
Hi Timothy,
>>>>> Timothy <tecosaur@gmail.com> writes:
> 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:
It doesn't work for me. I get "No data in plot" in the gnuplot buffer. I
am probably doing something stupid.
Best wishes,
Colin.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Minor org-plot update, can now use with #+results
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 17:57 ` Greg Minshall
1 sibling, 0 replies; 5+ messages in thread
From: Greg Minshall @ 2021-05-28 17:57 UTC (permalink / raw)
To: Timothy; +Cc: org-mode-email
Timothy,
> 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!
very nice -- thanks!
Greg
^ 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 public 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).