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 17:41:27 -0500 Message-ID: References: <29278.1282423292@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0766130106==" Return-path: Received: from [140.186.70.92] (port=36626 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmwxS-0003TD-Nr for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Omwkj-0001hB-CQ for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:41:30 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:62515) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omwkj-0001h7-9J for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:41:29 -0400 Received: by vws16 with SMTP id 16so4473863vws.0 for ; Sat, 21 Aug 2010 15:41:27 -0700 (PDT) In-Reply-To: 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 --===============0766130106== Content-Type: multipart/alternative; boundary=e0cb4e887ee9a91cc3048e5d1dda --e0cb4e887ee9a91cc3048e5d1dda Content-Type: text/plain; charset=ISO-8859-1 Problem solved with babel. I was able to get everything I wanted by piecing together some examples from the mailing list and gnuplot examples/manual around the web. Thanks! On Sat, Aug 21, 2010 at 4:11 PM, John Hendy wrote: > 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 >> > > --e0cb4e887ee9a91cc3048e5d1dda Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Problem solved with babel. I was able to get everything I wanted by piecing= together some examples from the mailing list and gnuplot examples/manual a= round the web.

Thanks!


On Sat, Aug 21, 2010 at 4:11 PM, John Hendy <jw.hendy@gmail.com> wrote:
=
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-tutor= ials/org-plot.php

Perhaps it's not possible?

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

John


On Sat, Aug 21, 2010 at 3:= 41 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
John Hendy <jw.hendy@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


--e0cb4e887ee9a91cc3048e5d1dda-- --===============0766130106== 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 --===============0766130106==--