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
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.
Colin Baxter <m43cap@yandex.com> writes:
> It doesn't work for me. I get "No data in plot" in the gnuplot buffer. I
> am probably doing something stupid.
That's odd, it "just works™" for me. Just to check: you are running Org
HEAD?
--
Timothy
>>>>> Timothy <tecosaur@gmail.com> writes:
> Colin Baxter <m43cap@yandex.com> writes:
>> It doesn't work for me. I get "No data in plot" in the gnuplot
>> buffer. I am probably doing something stupid.
> That's odd, it "just works™" for me. Just to check: you are
> running Org HEAD?
It does work for me. I needed a blank line after the src code
block. My mistake, sorry.
Best wishes,
Colin.
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