From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Generating boxplot (candlestick) diagrams (babel or org-plot) Date: Sun, 08 Jan 2012 11:05:24 -0700 Message-ID: <87boqe134r.fsf@gmx.com> References: <2012-01-08T16-41-37@devnull.Karl-Voit.at> <87k452176e.fsf@gmx.com> <2012-01-08T17-48-55@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjx7o-0000O1-3Y for emacs-orgmode@gnu.org; Sun, 08 Jan 2012 13:05:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rjx7m-0007mP-SW for emacs-orgmode@gnu.org; Sun, 08 Jan 2012 13:05:44 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:38402 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rjx7m-0007mL-MQ for emacs-orgmode@gnu.org; Sun, 08 Jan 2012 13:05:42 -0500 In-Reply-To: <2012-01-08T17-48-55@devnull.Karl-Voit.at> (Karl Voit's message of "Sun, 8 Jan 2012 18:30:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@Karl-Voit.at Cc: emacs-orgmode@gnu.org Karl Voit writes: > Hi Eric! > > * Eric Schulte wrote: >> >> In more complex examples like these I would recommend using a gnuplot >> code block rather than using Org-plot.=20=20 > > Thought so. Thanks for confirmation. > >> Gnuplot has an extremely >> comprehensive built in help system, typing "help boxplot" at the gnuplot >> REPL returns the following. > > My gnuplot (Version 4.4 patchlevel 2) returns: > > ,---- > | gnuplot> help boxplot > | Sorry, no help for 'boxplot' > | gnuplot> > `---- > > gnuplot-doc is installed. Do I miss something else? =C2=ABhelp > candlestick=C2=BB works. Is =C2=ABboxplot=C2=BB a part of an additional e= xtension > package? > I'm using gnuplot 4.5 patchlevel 0 which is probably where this difference comes in. As I use gnuplot all the time, I find it worthwhile to track the development head for nice new features such as this and beautiful pdf plots through pgf/tikz. > >> Also see the help for "candlestick". Using this information the >> attached Org-mode file generates a candlestick plot using a Gnuplot code >> block. >> >> #+name: sample >>| x | box_min | whisker_min | whisker_high | box_high | >>|---+---------+-------------+--------------+----------| >> >> #+begin_src gnuplot :var data=3Dsample :results silent >> set xrange [0:7] >> plot data using 1:2:3:4:5 with candlesticks >> #+end_src > > Your example works like charm at my side.=20 > > And now I also understand the problem I had: I thought that gnuplot > is able to derive min/max whisker min/max from the data columns by > itself. > > Well - this is bad news to me since I do not see any reasonable way > to use gnuplot for that purpose. I might need to learn R or > Python/matplotlib :-( > Judging from the help output for boxplot it looks as though the boxplot option *will* perform these calculations for you, if you are willing to move to version 4.5 or later. The only downside of using new features in gnuplot is that it is noticeably harder to find help through google. > > Thanks for your help anyway! Happy to help! --=20 Eric Schulte http://cs.unm.edu/~eschulte/