Skip to content

Commit

Permalink
Fixes numbbo#1917
Browse files Browse the repository at this point in the history
Updated to use recent versions of matplotlib, which
deprecate `mlab.prctile` in favor of `numpy.percentile`.
  • Loading branch information
giuse authored Aug 15, 2019
1 parent 9f117c4 commit 09baff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code-postprocessing/cocopp/pplogloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def boxplot(x, notch=0, sym='b+', positions=None, widths=None):
for i, pos in enumerate(positions):
d = np.ravel(x[i])
# get median and quartiles
wisk_lo, q1, med, q3, wisk_hi = mlab.prctile(d, [10, 25, 50, 75, 90])
wisk_lo, q1, med, q3, wisk_hi = np.percentile(d, [10, 25, 50, 75, 90])
# get high extreme
#iq = q3 - q1
#hi_val = q3 + whis*iq
Expand Down

0 comments on commit 09baff9

Please sign in to comment.