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

Appearance settings

Commit 2aacdd0

Browse filesBrowse files
committed
fix example hist(density=...)
1 parent 6d85a30 commit 2aacdd0
Copy full SHA for 2aacdd0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎examples/statistics/histogram_features.py

Copy file name to clipboardExpand all lines: examples/statistics/histogram_features.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.