emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: henry atting <nsmp_02@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: plotting when x-axis has non-numeric data
Date: Sun, 28 Feb 2010 17:56:16 -0700	[thread overview]
Message-ID: <87bpf8dfm7.fsf@gmail.com> (raw)
In-Reply-To: <87d3zp8c5u.fsf@online.de> (henry atting's message of "Sun, 28 Feb 2010 19:09:49 +0100")

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 <nsmp_02@online.de> 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

  reply	other threads:[~2010-03-01  0:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-27 15:31 plotting when x-axis has non-numeric data henry atting
2010-02-28 18:09 ` henry atting
2010-03-01  0:56   ` Eric Schulte [this message]
2010-03-01  9:05     ` henry atting

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpf8dfm7.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nsmp_02@online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).