Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-12 Thread David Fokkema
On Tue, 2007-04-10 at 19:03 +0300, Jouni K. Seppänen wrote: > David Fokkema <[EMAIL PROTECTED]> writes: > > > I can't think of an application where you have bins of different > > widths and you want to center the values... > > Actually, now that I think about it, there is not enough information >

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread Jouni K . Seppänen
David Fokkema <[EMAIL PROTECTED]> writes: > I can't think of an application where you have bins of different > widths and you want to center the values... Actually, now that I think about it, there is not enough information in the bin centers to know the widths of the bins if they may vary. For e

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread David Fokkema
On Tue, 2007-04-10 at 16:13 +0300, Jouni K. Seppänen wrote: > David Fokkema <[EMAIL PROTECTED]> writes: > > > I fixed the bug, I think. At least it's working on my system and I think > > it is not invasive. Comments please? I'll send it upstream otherwise... > > Does this handle the case where th

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread Jouni K . Seppänen
David Fokkema <[EMAIL PROTECTED]> writes: > I fixed the bug, I think. At least it's working on my system and I think > it is not invasive. Comments please? I'll send it upstream otherwise... Does this handle the case where the user has specified bins of different widths? It looks like you are onl

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread David Fokkema
On Sun, 2007-04-08 at 19:25 +0200, David Fokkema wrote: > On Fri, 2007-04-06 at 18:32 +0300, Jouni K. Seppänen wrote: > > David Fokkema <[EMAIL PROTECTED]> writes: > > > > > If I choose center, the result is that my histogram is calculated > > > for edge values but the bars are placed at center va

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-08 Thread David Fokkema
On Fri, 2007-04-06 at 18:32 +0300, Jouni K. Seppänen wrote: > David Fokkema <[EMAIL PROTECTED]> writes: > > > If I choose center, the result is that my histogram is calculated > > for edge values but the bars are placed at center values which is > > completely misleading and wrong! I'd say this is

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-06 Thread Jouni K . Seppänen
David Fokkema <[EMAIL PROTECTED]> writes: > If I choose center, the result is that my histogram is calculated > for edge values but the bars are placed at center values which is > completely misleading and wrong! I'd say this is a bug, but I may be > overlooking something here... Looks like a bug

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-04 Thread David Fokkema
On Wed, 2007-04-04 at 16:26 +0200, David Fokkema wrote: > Hi group, > > I have the following ipython 'session': > > In [23]: data = [0, 0.4, 0.6, 1, 2, 3] > > In [24]: bins = [0, 1, 2, 3] > > In [25]: hist(data, bins, align='edge') > Out[25]: (array([3, 1, 1, 1]), [0, 1, 2, 3], objects>) > >

[Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-04 Thread David Fokkema
Hi group, I have the following ipython 'session': In [23]: data = [0, 0.4, 0.6, 1, 2, 3] In [24]: bins = [0, 1, 2, 3] In [25]: hist(data, bins, align='edge') Out[25]: (array([3, 1, 1, 1]), [0, 1, 2, 3], ) In [26]: hist(data, bins, align='center') Out[26]: (array([3, 1, 1, 1]), [0, 1, 2, 3], )