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 only using the width of the
first bin:

> +    if align == 'center':
> +       hw = .5*(bins[1]-bins[0])
> +       nbins = [x-hw for x in bins]
> +    else:
> +       nbins = bins

At least, I've always thought that unequal bins are allowed, but from
the following it seems that the probability density support also makes
an incompatible assumption:

>      if normed:
> -       db = bins[1]-bins[0]
> +       db = nbins[1]-nbins[0]
>         return 1/(len(y)*db)*n, bins

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to