From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Gnuplot unevenly spaced non-numeric data plot? Date: Sat, 21 Aug 2010 16:11:22 -0500 Message-ID: References: <29278.1282423292@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0284615703==" Return-path: Received: from [140.186.70.92] (port=44019 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmvLZ-0004ff-6G for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 17:11:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmvLX-00007D-PR for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 17:11:25 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:62074) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmvLX-000075-EK for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 17:11:23 -0400 Received: by vws16 with SMTP id 16so4435882vws.0 for ; Sat, 21 Aug 2010 14:11:22 -0700 (PDT) In-Reply-To: <29278.1282423292@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode --===============0284615703== Content-Type: multipart/alternative; boundary=0016e68ea5068170a6048e5bdb9a --0016e68ea5068170a6048e5bdb9a Content-Type: text/plain; charset=ISO-8859-1 Nick, That works from gnuplot. Not sure about orgmode... I tried #+PLOT: using:"2:3:xticlabels(1)" which is not working. There's no "using" option mentioned on worg: http://orgmode.org/worg/org-tutorials/org-plot.php Perhaps it's not possible? I could try the org-babel method but there seems to be less documentation on this? John On Sat, Aug 21, 2010 at 3:41 PM, Nick Dokos wrote: > John Hendy wrote: > > > Hi, > > > > I'm interested in plotting with non-numeric data for the x component of > the data points but don't want to have the gnuplot default of automatic > spacing. > > Does anyone know a way to have a word displayed instead of a number but > have the words unevenly spaced according to a "hidden value"? > > > > Example: > > > > | 1 | x: where it should be on the scale | y | > > |---+------------------------------------+----| > > | a | 0 | 10 | > > | b | 10 | 20 | > > | c | 11 | 30 | > > | d | 40 | 40 | > > > > Does that make sense? If I just had the table minus the 2nd column, it > would space a->d evenly as if they were 0,1,2,3 or something like that. I'd > like > > 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 > | b 10 20 > | c 11 30 > | d 40 40 > `---- > > HTH, > Nick > --0016e68ea5068170a6048e5bdb9a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nick,

That works from gnuplot. Not sure about orgmode...= I tried

#+PLOT: using:"2:3:xticlabels(1)&quo= t;

which is not working. There's no "usin= g" option mentioned on worg:=A0http://orgmode.org/worg/org-tutorials/org-plot.php<= /a>

Perhaps it's not possible?

I could= try the org-babel method but there seems to be less documentation on this?=

John

On Sat, Aug 21, = 2010 at 3:41 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
John Hendy <jw.h= endy@gmail.com> wrote:

> Hi,
>
> I'm interested in plotting with non-numeric data for the x compone= nt of the data points but don't want to have the gnuplot default of aut= omatic spacing.
> Does anyone know a way to have a word displayed instead of a number bu= t have the words unevenly spaced according to a "hidden value"? >
> Example:
>
> | 1 | x: where it should be on the scale | =A0y |
> |---+------------------------------------+----|
> | a | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00 | 10 |
> | b | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 10 | 20 |
> | c | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 11 | 30 |
> | d | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 40 | 40 |
>
> Does that make sense? If I just had the table minus the 2nd column, it= would space a->d evenly as if they were 0,1,2,3 or something like that.= I'd like
> control over their spacing.

Gnuplot can certainly do it, but whether you can convince org-p= lot/gnuplot
to emit the right incantation, I don't know.

Try the following in gnuplot

=A0 =A0 =A0 =A0plot 'foo.data' using 2:3:xticlabels(1)

with the data file containing

,----
| a =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A00 =A010
| b =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 10 =A02= 0
| c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 11 =A03= 0
| d =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 40 =A04= 0
`----

HTH,
Nick

--0016e68ea5068170a6048e5bdb9a-- --===============0284615703== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0284615703==--