[Matplotlib-users] Rotating a subplot counter-clockwise 90 degrees?

2007-03-13 Thread David Fokkema
Hi list, I started to use ipython with matplotlib and I'm starting to become a fan. However, I encountered a problem which is nagging me big time. http://procyon.homeunix.net/~dfokkema/plot-matplotlib-070313.png This is a plot of a 2d histogram of events where peak heights and time differences a

Re: [Matplotlib-users] Rotating a subplot counter-clockwise 90 degrees?

2007-03-14 Thread David Fokkema
On Tue, 2007-03-13 at 18:05 +0200, Jouni K. Seppänen wrote: > David Fokkema <[EMAIL PROTECTED]> writes: > > > basically a horizontal cumulative histogram, apart from the fact that > > the plot should be rotated 90 degrees counter-clockwise. > > Does hist(..., orient

[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], )

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

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 misl

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 v

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... &g

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