From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: plotting when x-axis has non-numeric data Date: Sun, 28 Feb 2010 17:56:16 -0700 Message-ID: <87bpf8dfm7.fsf@gmail.com> References: <878wae8zm1.fsf@online.de> <87d3zp8c5u.fsf@online.de> 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 1Nltvs-0002x6-BZ for emacs-orgmode@gnu.org; Sun, 28 Feb 2010 19:56:24 -0500 Received: from [140.186.70.92] (port=55575 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nltvr-0002wb-If for emacs-orgmode@gnu.org; Sun, 28 Feb 2010 19:56:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nltvq-0002UW-EY for emacs-orgmode@gnu.org; Sun, 28 Feb 2010 19:56:23 -0500 Received: from mail-pz0-f190.google.com ([209.85.222.190]:64013) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nltvq-0002U8-AG for emacs-orgmode@gnu.org; Sun, 28 Feb 2010 19:56:22 -0500 Received: by pzk28 with SMTP id 28so1566783pzk.1 for ; Sun, 28 Feb 2010 16:56:20 -0800 (PST) In-Reply-To: <87d3zp8c5u.fsf@online.de> (henry atting's message of "Sun, 28 Feb 2010 19:09:49 +0100") 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: henry atting Cc: emacs-orgmode@gnu.org Hi Henry, Thanks for bringing up this bug. While for any serious plotting I would certainly recommend using Org-babel over org-plot, org-plot should still function correctly. I've just pushed up a fix to the bug you described, so your previous table should work once again. Thanks -- Eric henry atting writes: > On Sa, Feb 27 2010, henry atting wrote: > >> I have a table which I am plotting longly, it looks like this: >> >> #+PLOT: title:"expenses" ind:1 type:2d with:lines >> #+PLOT: set:"yrange [0:]" labels:("month" "expenses" "average") >> | month | two |three| >> |------------+--------+-----| >> | November | 500 | 500 | >> | December | 500 | 500 | >> | January | 600 | 500 | >> | February | 400 | 500 | >> >> Thus far it was no problem that the x-axis contains non-numeric data. >> Now gnuplot stops with this error message: >> >> gnuplot> plot '/tmp/org-plot18686CtJ' using 1:3:xticlabel(1) with lines title 'H-index' >> warning: Skipping data file with no valid points >> x range is invalid >> >> When I try to plot the table 'Citas' from this tutorial [1] I get the >> same error message. >> >> henry >> >> ___ >> >> [1] http://orgmode.org/worg/org-tutorials/org-plot.php > > Okay, I see; for some reason the following statement is not more valid: > > ,----[ From: http://orgmode.org/worg/org-tutorials/org-plot.php ] > | Org-plot can also produce histograms from 2d data, plot the following > | table. Notice that the column specified as ind contains textual > | non-numeric data, when this is the case org-plot will use the data as > | labels for the x-axis using the gnuplot xticlabels() function. > `---- > > As far as I see, you have to do it with org-babel now, which works just > as well for me. > > henry