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 wrote: > On Mon, Oct 27, 2014 at 11:06 AM, Benjamin Root wrote: > > 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

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

2014-10-27 Thread Matthew Brett
On Mon, Oct 27, 2014 at 11:06 AM, Benjamin Root wrote: > 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. I'm embarrassed to say that I didn't look at

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 wrote: > Hi, > > I just noticed that this: > >

[Matplotlib-users] plt.bar stripping zeros

2014-10-25 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 expect