Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8da483

Browse files
committed
TST: added tests and baseline images for new whisker behavior
1 parent 7cf8b35 commit d8da483

7 files changed

Lines changed: 419 additions & 3 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,14 +2002,14 @@ def _compute_conf_interval(data, med, iqr, bootstrap):
20022002
if len(wiskhi) == 0 or np.max(wiskhi) < stats['q3']:
20032003
stats['whishi'] = stats['q3']
20042004
else:
2005-
stats['whishi'] = max(wiskhi)
2005+
stats['whishi'] = np.max(wiskhi)
20062006

20072007
# get low extreme
20082008
wisklo = np.compress(x >= loval, x)
20092009
if len(wisklo) == 0 or np.min(wisklo) > stats['q1']:
20102010
stats['whislo'] = stats['q1']
20112011
else:
2012-
stats['whislo'] = min(wisklo)
2012+
stats['whislo'] = np.min(wisklo)
20132013

20142014
# compute a single array of outliers
20152015
stats['fliers'] = np.hstack([
Binary file not shown.
6.59 KB
Loading
Lines changed: 380 additions & 0 deletions
Loading
3.39 KB
Loading
3.08 KB
Loading

0 commit comments

Comments
 (0)