Re: [Matplotlib-users] plt.bar stripping zeros

2014-10-28 Thread Benjamin Root
No problem! On Tue, Oct 28, 2014 at 12:00 AM, Matthew Brett matthew.br...@gmail.com wrote: On Mon, Oct 27, 2014 at 11:06 AM, Benjamin Root ben.r...@ou.edu wrote: Which version of matplotlib are you running? I could have sworn this was fixed awhile ago. If I understand the problem correctly,

Re: [Matplotlib-users] plt.bar stripping zeros

2014-10-27 Thread Benjamin Root
Which version of matplotlib are you running? I could have sworn this was fixed awhile ago. If I understand the problem correctly, essentially, the autoscalling was clipping empty patches out. Ben Root On Sun, Oct 26, 2014 at 2:57 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, I just

[Matplotlib-users] plt.bar stripping zeros

2014-10-26 Thread Matthew Brett
Hi, I just noticed that this: x = np.arange(10) y = np.zeros(10) y[5] = 1 plt.bar(x, y) Will generate a big box for x = 5 with x 0:5 and 6: stripped, whereas this: y += 0.01 plt.bar(x, y) Will generate a bar plot going from x = 0 to 9 with a bar at 5 as I was expecting. If I make a