Plotting: Fix histogram plotting.
commit1edd9d0cc6026da7481062c6a97eaee17db6959f
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 16 Jan 2009 18:43:33 +0000 (16 19:43 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 16 Jan 2009 18:43:33 +0000 (16 19:43 +0100)
treead507e3dbe9a0e5ee562de68078fbdb4f1001fe2
parentaf62bbd44c52a7ee8ac836a5a41ec182423e2b8c
Plotting: Fix histogram plotting.

William Henney writes:

     The following table works correctly with org-plot
    #+PLOT: title:"org-plot test" ind:1 type:2d with:hist set:"style fill
    solid" set:"yrange [0:]"
     |  Year | a | b |
     |-------+---+---|
     | x2006 | 3 | 1 |
     |  2007 | 1 | 2 |
     |  2008 | 2 | 0 |

     However, if the "x" is removed from the start of all the years, it no
     longer works:

    #+PLOT: title:"org-plot bug" ind:1 type:2d with:hist set:"style fill
    solid" set:"yrange [0:]"
     | Year | a | b |
     |------+---+---|
     | 2006 | 3 | 1 |
     | 2007 | 1 | 2 |
     | 2008 | 2 | 0 |

     From glancing through org-plot.el, it seems as though the problem is
     that the text-ind parameter is false when all the values in the
     "independent variable" column are legal numbers. However, my lisp
     skills are not up to fixing this.

This patch is by Charles Sebold and Eric Schulte fixes the problem.
lisp/ChangeLog
lisp/org-plot.el