emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Foivos S. Zakkak" <foivos@zakkak.net>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs-orgmode Digest, Vol 115, Issue 21
Date: Fri, 18 Sep 2015 19:27:46 +0300	[thread overview]
Message-ID: <yx80h9mritfh.fsf@gmail.com> (raw)
In-Reply-To: <20150918104707.GT30959@chitra.no-ip.org>



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

      reply	other threads:[~2015-09-18 16:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17 17:05 [org-plot/gnuplot] Plotting candlestick plots Foivos S. Zakkak
2015-09-18 10:47 ` Suvayu Ali
2015-09-18 16:27   ` Foivos S. Zakkak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yx80h9mritfh.fsf@gmail.com \
    --to=foivos@zakkak.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).