Re: [Matplotlib-users] bug with bar graph when plotting zero values?

2012-09-27 Thread Damon McDougall
On Thu, Sep 27, 2012 at 1:07 PM, Benjamin Root wrote: > > > On Thursday, September 27, 2012, Pierre Haessig wrote: >> >> Hi Paul, >> >> Le 26/09/2012 18:14, Paul Tremblay a écrit : >> > I noticed today that when I create a bar graph with zero values that >> > the labels don't align correctly: >> >

Re: [Matplotlib-users] bug with bar graph when plotting zero values?

2012-09-27 Thread Benjamin Root
On Thursday, September 27, 2012, Pierre Haessig wrote: > Hi Paul, > > Le 26/09/2012 18:14, Paul Tremblay a écrit : > > I noticed today that when I create a bar graph with zero values that > > the labels don't align correctly: > > When I run your code with defects = [0, 0, 0, 5, 6, 7], I don't noti

[Matplotlib-users] bug with bar graph when plotting zero values?

2012-09-26 Thread Paul Tremblay
I noticed today that when I create a bar graph with zero values that the labels don't align correctly: import matplotlib.pyplot as plt import numpy as np fig = plt.figure() names = ['name a', 'name b', 'name c', 'named', 'name e', 'name f'] defects = [0, 0, 0, 5, 6, 7] ax = fig.add_subplot(111) w