From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Plotting date on xaxis Date: Thu, 25 Feb 2010 10:44:33 -0700 Message-ID: <87tyt5xla6.fsf@gmail.com> References: <417457b51002221031k48e2470aof86f6b6e71ea454b@mail.gmail.com> <87zl30c6zn.fsf@gmail.com> <87vddntvig.wl%ucecesf@ucl.ac.uk> <87ljejsdk6.fsf@gmail.com> <87wry3kqej.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 1NkhlR-0003mI-OV for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 12:44:41 -0500 Received: from [140.186.70.92] (port=58054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkhlQ-0003ly-F2 for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 12:44:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkhlN-0005e1-He for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 12:44:40 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:60551) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkhlN-0005de-Co for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 12:44:37 -0500 Received: by pwj7 with SMTP id 7so5982002pwj.0 for ; Thu, 25 Feb 2010 09:44:36 -0800 (PST) In-Reply-To: <87wry3kqej.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 24 Feb 2010 08:07:48 +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: > On Tue, 23 Feb 2010 17:05:45 -0700, "Eric Schulte" wrote: >> >> 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. > > Well, good intentions is one thing, wrong behaviour is another? If > the user has specified "ind:1 deps:(2)", even if org-plot identifies > column 1 as having labels for the tic marks, the generated parameter > to the plot command should be, at best: > > ... using 1:2:xticlabels(1) ... > I just applied a patch which results in the above plotting command, and yields the following gnuplot error when the table contains an empty line "illegal day of month" which to me seems entirely appropriate. All of the plots form the org-plot page on worg still work with this patch (which amounts to org-plot's test suite), so I relatively confident that it shouldn't break any existing functionality. One problem with org-plot's attempt to guess the best action in each situation is that the code will get increasingly ugly as these corner cases continue to arise, and as that happens it becomes increasingly difficult to know a-priori if a patch will cause unforeseen problems. Best -- Eric > > which is actually nonsensical as well but not as bad as what is > currently generated: > > ... using 1:xticlabels(1) > > which completely ignores the "deps:(2)" option! > > In any case, I'm not suggesting in any way that this is a critical > bug! Simply removing the empty line allows org-plot to work > perfectly.