Commit 885b5172d3d9b2d129b1108801e8d0cd440aae76

Authored by Josh Cardenzana
1 parent ad59645c

Remove call to matplotlib.mlab.normpdf in show_pull_histogram.py (#3156)

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