From 885b5172d3d9b2d129b1108801e8d0cd440aae76 Mon Sep 17 00:00:00 2001 From: Josh Cardenzana Date: Wed, 5 Feb 2020 16:42:04 +0100 Subject: [PATCH] Remove call to matplotlib.mlab.normpdf in show_pull_histogram.py (#3156) --- examples/show_pull_histogram.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/show_pull_histogram.py b/examples/show_pull_histogram.py index 76efec8..57d96bb 100755 --- a/examples/show_pull_histogram.py +++ b/examples/show_pull_histogram.py @@ -22,7 +22,6 @@ import sys import cscripts try: import matplotlib.pyplot as plt - import matplotlib.mlab as mlab plt.figure() plt.close() except (ImportError, RuntimeError): @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): normed=True, facecolor='green') # Create expected distribution - y = mlab.normpdf(bins, 0.0, 1.0) + y = np.exp(-0.5*bins*bins) / np.sqrt(2.0*np.pi) plt.plot(bins, y, 'r-', linewidth=2) # Set plot -- libgit2 0.21.4