Skip to content

Commit 6cfba9d

Browse files
authored
Merge pull request #3455 from sjshim/fix/bug-3451
FIX: Change plt.hist() argument from deprecated 'normed' to 'density'
2 parents 3dc858e + a6f929f commit 6cfba9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/metrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _eucl_mean(self, nii1, nii2, weighted=False):
150150
import matplotlib.pyplot as plt
151151

152152
plt.figure()
153-
plt.hist(min_dist_matrix, 50, normed=1, facecolor="green")
153+
plt.hist(min_dist_matrix, 50, density=True, facecolor="green")
154154
plt.savefig(self._hist_filename)
155155
plt.clf()
156156
plt.close()

0 commit comments

Comments
 (0)