Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hist demo appears to incorrectly mention normed and something odd about density as well. #16185

Closed
@joelmiller

Description

@joelmiller

Looking at the webpage:

https://matplotlib.org/3.1.1/gallery/statistics/histogram_features.html

It claims that "this demo shows a few optional features:"

Among these is:

"The normed flag, which normalizes bin heights so that the integral of the histogram is 1. The resulting histogram is an approximation of the probability density function."

In fact, it is not shown (density=1 is used instead).

While I'm at it, density is listed as a boolean on

https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.hist.html

So it's not clear to me why density=True isn't being used there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions