Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rely on numpy to properly normalize histograms with unequal bin widths #8333

Closed
Milestone
@anntzer

Description

@anntzer

The source ofhist contains the following snippets:

        Notes        -----        Until numpy release 1.5, the underlying numpy histogram function was        incorrect with `normed`=`True` if bin sizes were unequal.  MPL        inherited that error.  It is now corrected within MPL when using        earlier numpy versions.
        # hist_kwargs = dict(range=range, normed=bool(normed))        # We will handle the normed kwarg within mpl until we        # get to the point of requiring numpy >= 1.5.

and code for manual handling of thenormed kwarg.

Given that we now require numpy >=1.7.1, we should just use thedensity kwarg to numpy.histogram to do this, and remove our own implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp