Commit 96c76e4b0d2d6562bb69675899b4abf1fe9cf2a8

Authored by Jürgen Knödlseder
2 parents c02c802c 885b5172

Merge branch '3156_remove_normpdf' into integration

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
... ...