Commit 96c76e4b0d2d6562bb69675899b4abf1fe9cf2a8
Merge branch '3156_remove_normpdf' into integration
Showing
1 changed file
with
1 additions
and
2 deletions
examples/show_pull_histogram.py
| @@ -22,7 +22,6 @@ import sys | @@ -22,7 +22,6 @@ import sys | ||
| 22 | import cscripts | 22 | import cscripts |
| 23 | try: | 23 | try: |
| 24 | import matplotlib.pyplot as plt | 24 | import matplotlib.pyplot as plt |
| 25 | - import matplotlib.mlab as mlab | ||
| 26 | plt.figure() | 25 | plt.figure() |
| 27 | plt.close() | 26 | plt.close() |
| 28 | except (ImportError, RuntimeError): | 27 | except (ImportError, RuntimeError): |
| @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): | @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): | ||
| 61 | normed=True, facecolor='green') | 60 | normed=True, facecolor='green') |
| 62 | 61 | ||
| 63 | # Create expected distribution | 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 | plt.plot(bins, y, 'r-', linewidth=2) | 64 | plt.plot(bins, y, 'r-', linewidth=2) |
| 66 | 65 | ||
| 67 | # Set plot | 66 | # Set plot |