From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Plotting date on xaxis Date: Tue, 23 Feb 2010 22:52:39 +0000 Message-ID: <87vddntvig.wl%ucecesf@ucl.ac.uk> References: <417457b51002221031k48e2470aof86f6b6e71ea454b@mail.gmail.com> <87zl30c6zn.fsf@gmail.com> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk3cb-0003N0-7O for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 17:52:53 -0500 Received: from [140.186.70.92] (port=47614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk3ca-0003MJ-85 for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 17:52:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk3cZ-0004e6-1e for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 17:52:52 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:58788) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk3cY-0004cv-TV for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 17:52:51 -0500 In-Reply-To: <87zl30c6zn.fsf@gmail.com> 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 Schulte Cc: emacs-orgmode@gnu.org On Tue, 23 Feb 2010 07:47:25 -0700, "Eric Schulte" wrote: > > Hi Johan, > > You could try plotting your table using standard org-mode date formats > which org-plot will understand without any need to specify a timefmt > string. Eric, thanks for this suggestion as well as the one using org-babel (which I would have typically used myself these days). However, the point still stands: why doesn't what Johan tried initially work? 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: --8<---------------cut here---------------start------------->8--- #+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 | | | | --8<---------------cut here---------------end--------------->8--- 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