8000 MEP12: Example clean-up for reference by tonysyu · Pull Request #2474 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MEP12: Example clean-up for reference #2474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jan 14, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary second histogram
  • Loading branch information
tonysyu committed Sep 29, 2013
commit e57b5fc31fbad83ed9c43c77ef15368efdcb9ec1
11 changes: 0 additions & 11 deletions examples/pylab_examples/histogram_demo_cumulative.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@
y /= y[-1]
plt.plot(bins, y, 'k--', linewidth=1.5)

# Create a second data-set with a smaller standard deviation.
sigma2 = 15.
x = mu + sigma2*np.random.randn(10000)

n, bins, patches = plt.hist(x, bins=bins, normed=1, histtype='step', cumulative=True)

# Add a line showing the expected distribution.
y = mlab.normpdf( bins, mu, sigma2).cumsum()
y /= y[-1]
plt.plot(bins, y, 'r--', linewidth=1.5)

# Overlay a reverted cumulative histogram.
n, bins, patches = plt.hist(x, bins=bins, normed=1,
histtype='step', cumulative=-1)
Expand Down
0