Commit 885b5172d3d9b2d129b1108801e8d0cd440aae76
1 parent
ad59645c
Remove call to matplotlib.mlab.normpdf in show_pull_histogram.py (#3156)
Showing
1 changed file
with
1 additions
and
2 deletions
examples/show_pull_histogram.py
| ... | ... | @@ -22,7 +22,6 @@ import sys |
| 22 | 22 | import cscripts |
| 23 | 23 | try: |
| 24 | 24 | import matplotlib.pyplot as plt |
| 25 | - import matplotlib.mlab as mlab | |
| 26 | 25 | plt.figure() |
| 27 | 26 | plt.close() |
| 28 | 27 | except (ImportError, RuntimeError): |
| ... | ... | @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): |
| 61 | 60 | normed=True, facecolor='green') |
| 62 | 61 | |
| 63 | 62 | # Create expected distribution |
| 64 | - y = mlab.normpdf(bins, 0.0, 1.0) | |
| 63 | + y = np.exp(-0.5*bins*bins) / np.sqrt(2.0*np.pi) | |
| 65 | 64 | plt.plot(bins, y, 'r-', linewidth=2) |
| 66 | 65 | |
| 67 | 66 | # Set plot | ... | ... |