Skip to content

Commit d77a57f

Browse files
committed
Don't limit notch size in boxplot to q1-q3 range
svn path=/trunk/matplotlib/; revision=8040
1 parent d3f139f commit d77a57f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2009-12-18 Don't limit notch size in boxplot to q1-q3 range, as this
2+
is effectively making the data look better than it is. - ADS
3+
14
2009-12-18 mlab.prctile handles even-length data, such that the median
25
is the mean of the two middle values. - ADS
36

lib/matplotlib/axes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,10 +5035,6 @@ def boxplot(self, x, notch=0, sym='b+', vert=1, whis=1.5,
50355035
else:
50365036
notch_max = med + 1.57*iq/np.sqrt(row)
50375037
notch_min = med - 1.57*iq/np.sqrt(row)
5038-
if notch_max > q3:
5039-
notch_max = q3
5040-
if notch_min < q1:
5041-
notch_min = q1
50425038
# make our notched box vectors
50435039
box_x = [box_x_min, box_x_max, box_x_max, cap_x_max, box_x_max,
50445040
box_x_max, box_x_min, box_x_min, cap_x_min, box_x_min,

0 commit comments

Comments
 (0)