From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Gnuplot unevenly spaced non-numeric data plot? Date: Sat, 21 Aug 2010 16:41:32 -0400 Message-ID: <29278.1282423292@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56074 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Omut1-0006gH-5t for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 16:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Omusz-0003we-SL for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 16:41:55 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:40634) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omusz-0003wM-PE for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 16:41:53 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7I00IARS59CGA0@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 15:41:33 -0500 (CDT) In-reply-to: Message from John Hendy of "Sat\, 21 Aug 2010 14\:30\:48 CDT." 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: John Hendy Cc: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: > Hi, >=20 > I'm interested in plotting with non-numeric data for the x component of t= he data points but don't want to have the gnuplot default of automatic spac= ing. > Does anyone know a way to have a word displayed instead of a number but h= ave the words unevenly spaced according to a "hidden value"? >=20 > Example: >=20 > | 1 | x: where it should be on the scale | =C2=A0y | > |---+------------------------------------+----| > | a | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 | 10 | > | b | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10 | 20 | > | c | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11 | 30 | > | d | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 40 | 40 | >=20 > Does that make sense? If I just had the table minus the 2nd column, it wo= uld space a->d evenly as if they were 0,1,2,3 or something like that. I'd l= ike > control over their spacing. Gnuplot can certainly do it, but whether you can convince org-plot/gnuplot to emit the right incantation, I don't know. Try the following in gnuplot plot 'foo.data' using 2:3:xticlabels(1) with the data file containing ,---- | a 0 10=20 | b 10 20=20 | c 11 30=20 | d 40 40=20 `---- HTH, Nick