From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Plotting date on xaxis Date: Tue, 23 Feb 2010 17:05:45 -0700 Message-ID: <87ljejsdk6.fsf@gmail.com> References: <417457b51002221031k48e2470aof86f6b6e71ea454b@mail.gmail.com> <87zl30c6zn.fsf@gmail.com> <87vddntvig.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk4lH-0004hV-Q6 for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 19:05:55 -0500 Received: from [140.186.70.92] (port=47086 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk4lF-0004hM-Sj for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 19:05:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk4lE-0003Xz-H2 for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 19:05:53 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:56989) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk4lE-0003Xs-CA for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 19:05:52 -0500 Received: by fxm22 with SMTP id 22so4496874fxm.26 for ; Tue, 23 Feb 2010 16:05:51 -0800 (PST) In-Reply-To: <87vddntvig.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 23 Feb 2010 22:52:39 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org Eric S Fraga writes: [...] > > I have narrowed down what causes the problem although I don't > understand why (I haven't had any time to look at the elisp code). > Basically, the problem with Johan's initial table was the extra empty > row at the end: > Ah, Thanks for isolating the issue. It looks like the empty last row is tricking org-plot.el into thinking that the entire Date column contains text labels, so it tries to use the values of that column to label the data with xticlabels [1]. This is useful for histograms such as the "Citas" graph in [2]. So all in all I'd say this is fine behavior for something like org-plot which tries to guess the user's intentions. Best -- Eric > > #+PLOT: title:"Weight" ind:1 deps:(2) type:2d with:linespoints set:"xdata time" set:"timefmt '%Y-%m-%d'" set:"yrange [90:]" > | Date | Kg | > |------------+------| > | 2010-02-21 | 95.0 | > | 2010-02-22 | 93.0 | > | 2010-02-23 | 92.0 | > | 2010-02-24 | 91.5 | > | 2010-02-25 | 91.0 | > | 2010-02-28 | 92.0 | > | | | > > With the empty row there, the "using 1:2" option to the gnuplot plot > command is not generated correctly, instead generating "using > 1:xticlable(1)" which gnuplot doesn't like! If the last row is > deleted, everything works just fine (even if February doesn't have 29 > days in 2010 ;-). > > HTH, > eric Footnotes: [1] http://www.gnuplot.info/docs/node135.html [2] http://orgmode.org/worg/org-tutorials/org-plot.php