diff --git a/nipype/algorithms/metrics.py b/nipype/algorithms/metrics.py index fc209a9d27..b58e7fc59b 100644 --- a/nipype/algorithms/metrics.py +++ b/nipype/algorithms/metrics.py @@ -150,7 +150,7 @@ def _eucl_mean(self, nii1, nii2, weighted=False): import matplotlib.pyplot as plt plt.figure() - plt.hist(min_dist_matrix, 50, normed=1, facecolor="green") + plt.hist(min_dist_matrix, 50, density=True, facecolor="green") plt.savefig(self._hist_filename) plt.clf() plt.close()