bar() in matlab

When I do the bar(left, height) in matlab the first time, e.g.:


the plot does not have the "full" range : X starts at 4.5 (should be 4) and Y
starts at 5 (shouldbe 0). But if I reissue the same command without erasing the
plot, the plot range is fine, but the Y tick labels are funny (3 and 9 seem to
be at 2.5 and 8.5).

I also notice that if I use yerr:


The plot is fine the first time, both the range and the tick labels.

I am using matplotlib 0.60.1 on Solaris.

JC Hsu