Re: [Matplotlib-users] Missing bar when last value is 0

2012-09-19 Thread Adam Davis
Yes, that works. Many thanks. On Thu, Sep 20, 2012 at 1:12 AM, Benjamin Root wrote: > > > On Wednesday, September 19, 2012, Adam Davis wrote: > >> If I do: >> >> bar(range(3), [1,0,2]) >> >> ... then I get 2 bars of a suitable width for a 3 bar chart, with a gap >> in between where the middl

Re: [Matplotlib-users] Missing bar when last value is 0

2012-09-19 Thread Benjamin Root
On Wednesday, September 19, 2012, Adam Davis wrote: > If I do: > > bar(range(3), [1,0,2]) > > ... then I get 2 bars of a suitable width for a 3 bar chart, with a gap in > between where the middle bar would be if not equal to 0. Yet if I do: > > bar(range(3), [1,2,0]) > > ... then I get two

[Matplotlib-users] Missing bar when last value is 0

2012-09-19 Thread Adam Davis
If I do: bar(range(3), [1,0,2]) ... then I get 2 bars of a suitable width for a 3 bar chart, with a gap in between where the middle bar would be if not equal to 0. Yet if I do: bar(range(3), [1,2,0]) ... then I get two bars of equal width. Is there a way to preserve the space for the mi