emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: plotting when x-axis has non-numeric data


From: Eric Schulte
Subject: Re: [Orgmode] Re: plotting when x-axis has non-numeric data
Date: Sun, 28 Feb 2010 17:56:16 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

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 <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]