From a6f929f997ad42a152cfce2dbdd14ca912d37269 Mon Sep 17 00:00:00 2001 From: sjshim <85246533+sjshim@users.noreply.github.com> Date: Thu, 21 Apr 2022 19:41:33 -0700 Subject: [PATCH] change plt.hist() argument from 'normed' to 'density' --- nipype/algorithms/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()