Skip to content

Commit fcd1fd7

Browse files
authored
Merge pull request #21 from matplotlib/fix_image
Fix typo in statistical example image.
2 parents ab40b8a + 35928df commit fcd1fd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/statistical_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def main():
1919
boxplot(axes[1], dists, colors)
2020
violinplot(axes[2], dists, colors)
2121

22-
example_utils.title(fig, 'hist/boxplot/violinplot: Stastical plotting',
22+
example_utils.title(fig, 'hist/boxplot/violinplot: Statistical plotting',
2323
y=0.9)
2424
fig.savefig('statistical_example.png', facecolor='none')
2525

@@ -39,7 +39,7 @@ def hist(ax, dists, colors):
3939
# each distribution separately so they'll overlap and turn on transparency
4040
ax.set_color_cycle(colors)
4141
for dist in dists:
42-
ax.hist(dist, bins=20, normed=True, edgecolor='none', alpha=0.5)
42+
ax.hist(dist, bins=20, density=True, edgecolor='none', alpha=0.5)
4343

4444
ax.margins(y=0.05)
4545
ax.set_ylim(bottom=0)

images/statistical_example.png

-2.63 KB
Loading

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy