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

Skip to content

Commit 2aacdd0

Browse files
committed
fix example hist(density=...)
1 parent 6d85a30 commit 2aacdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/statistics/histogram_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
fig, ax = plt.subplots()
3636

3737
# the histogram of the data
38-
n, bins, patches = ax.hist(x, num_bins, density=1)
38+
n, bins, patches = ax.hist(x, num_bins, density=True)
3939

4040
# add a 'best fit' line
4141
y = ((1 / (np.sqrt(2 * np.pi) * sigma)) *

0 commit comments

Comments
 (0)