emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* plotting when x-axis has non-numeric data
@ 2010-02-27 15:31 henry atting
  2010-02-28 18:09 ` henry atting
  0 siblings, 1 reply; 4+ messages in thread
From: henry atting @ 2010-02-27 15:31 UTC (permalink / raw)
  To: emacs-orgmode

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


-- 
http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: plotting when x-axis has non-numeric data
  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
  0 siblings, 1 reply; 4+ messages in thread
From: henry atting @ 2010-02-28 18:09 UTC (permalink / raw)
  To: emacs-orgmode

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

-- 
http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: plotting when x-axis has non-numeric data
  2010-02-28 18:09 ` henry atting
@ 2010-03-01  0:56   ` Eric Schulte
  2010-03-01  9:05     ` henry atting
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2010-03-01  0:56 UTC (permalink / raw)
  To: henry atting; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: plotting when x-axis has non-numeric data
  2010-03-01  0:56   ` Eric Schulte
@ 2010-03-01  9:05     ` henry atting
  0 siblings, 0 replies; 4+ messages in thread
From: henry atting @ 2010-03-01  9:05 UTC (permalink / raw)
  To: Eric Schulte; +Cc: henry atting, emacs-orgmode

On Mo, Mär 01 2010, Eric Schulte wrote:

> 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.

Yes, it works fine again. 
As the Zen Master T.Deshimaru said (Zenglish he used to call his broken
English): `Bad Become Good'
But for the bug maybe I would not have dealt too much with the
org-babel (which is really great)

Thanks,
henry

-- 
http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-01  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-03-01  9:05     ` henry atting

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).