From 09baff949bba2bde63eb30638d4f724bf222fa5d Mon Sep 17 00:00:00 2001 From: Giuseppe Cuccu Date: Thu, 15 Aug 2019 17:57:15 +0200 Subject: [PATCH] Fixes https://github.com/numbbo/coco/issues/1917 Updated to use recent versions of matplotlib, which deprecate `mlab.prctile` in favor of `numpy.percentile`. --- code-postprocessing/cocopp/pplogloss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-postprocessing/cocopp/pplogloss.py b/code-postprocessing/cocopp/pplogloss.py index 907df03ad..8e2db5a48 100644 --- a/code-postprocessing/cocopp/pplogloss.py +++ b/code-postprocessing/cocopp/pplogloss.py @@ -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