[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Emacs-orgmode Digest, Vol 115, Issue 21
From: |
Foivos S. Zakkak |
Subject: |
Re: [O] Emacs-orgmode Digest, Vol 115, Issue 21 |
Date: |
Fri, 18 Sep 2015 19:27:46 +0300 |
On Fri, Sep 18, 2015 at 12:47:07 +0200, Suvayu Ali wrote:
> On Thu, Sep 17, 2015 at 08:05:16PM +0300, Foivos S. Zakkak wrote:
>> Hello list,
>>
>> I am trying to plot some candlesticks through org-plot/gnuplot, but I
>> fail.
>>
>> It seems that org-plot/gnuplot supports a list of numbers in deps, i.e.,
>> deps:(2 3 4) and then creates a string of the form:
>> 'test.dat' using X with lines
>> where X is first 2 then 3 and finally 4 for deps:(2 3 4)
>>
>> To plot candlesticks though, gnuplot expects a line of the form:
>> 'test'.dat' using 1:3:2:6:5:xticlabels(7) with candlesticks whiskerbars
>
> Org plot is there for quick and easy plotting.
I see what you mean, but I believe something like
--8<---------------cut here---------------start------------->8---
#+PLOT: ind:1 deps:("1:4:3:7:6") with:candlesticks
|------------+-----------+------+------+--------+------+------|
| # Variable | mean | min | q1 | median | q3 | max |
|------------+-----------+------+------+--------+------+------|
| 1 | 2166 | 2166 | 2166 | 2166 | 2166 | 2166 |
| 15 | 2166.6666 | 2166 | 2166 | 2167 | 2167 | 2168 |
| 255 | 2167.1803 | 2166 | 2167 | 2167 | 2168 | 2169 |
| 271 | 2247.3874 | 2242 | 2246 | 2247 | 2249 | 2252 |
|------------+-----------+------+------+--------+------+------|
--8<---------------cut here---------------end--------------->8---
is still pretty simple and yet so powerful.
> I would recommend using babel with gnuplot source blocks. You can
> easily pass tables as data, and configure your plot as you wish.
> Unfortunately I have not done this recently, so I don't have any
> simple examples handy, but I'm sure there are plenty on Worg.
>
> Hope this helps,
>
It sure does! I'll have a look into it, thanks.
Foivos
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
--
WWW: foivos.zakkak.net
PGP: 7B40 69D9 29BA AE91 C0B3 220A 0846 BFD1 03F0 4EA1