Add base value support to bars

Daniel J Sebald daniel.sebald at ieee.org
Wed Dec 19 00:50:21 CST 2007


John W. Eaton wrote:
> On 18-Dec-2007, Michael Goffioul wrote:
> 
> | The following patch adds support for a base value in bar functions. Note
> | that I'm not sure about the expected behavior in case of stacked bars, as
> | I don't have Matlab under the hand to check it.
> | 
> | Michael.
> | 
> | Index: scripts/plot/__bar__.m
> | ===================================================================
> | RCS file: /cvs/octave/scripts/plot/__bar__.m,v
> | retrieving revision 1.14
> | diff -c -r1.14 __bar__.m
> | *** scripts/plot/__bar__.m      29 Nov 2007 16:44:45 -0000      1.14
> | --- scripts/plot/__bar__.m      18 Dec 2007 20:49:00 -0000
> | ***************
> | *** 27,32 ****
> | --- 27,33 ----
> |     ## Slightly smaller than 0.8 to avoid clipping issue in gnuplot 4.0
> |     width = 0.8 - 10 * eps;
> |     group = true;
> | +   bv = 0;
> | 

Above is something gnuplot-ish in a non __go_abcdef__.m file.  Can that epsilon and mention of "gnuplot" be removed for the latest version of gnuplot, 4.3?  The epsilon doesn't seem to make a difference here.

Someone having the most up-to-date, please try something like

x = [0:10];
y = x;
bar(x,y,'group');
bar(x,y,'stack');

The options don't work for me.  (But I haven't the latest version of Octave.)

Dan



More information about the Octave-maintainers mailing list