From f2d025d3161dff54ef1409e62b269fc0c52ef0ae Mon Sep 17 00:00:00 2001 From: RadostW <51670923+RadostW@users.noreply.github.com> Date: Thu, 2 Feb 2023 20:29:34 +0100 Subject: [PATCH 1/4] Whisker length, more precise description See issue for discussion. https://github.com/matplotlib/matplotlib/issues/25134#issue-1568623320 --- lib/matplotlib/axes/_axes.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 69b625d92913..8117364e9169 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3722,10 +3722,11 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, """ Draw a box and whisker plot. - The box extends from the first quartile (Q1) to the third - quartile (Q3) of the data, with a line at the median. The - whiskers extend from the box by 1.5x the inter-quartile range - (IQR). Flier points are those past the end of the whiskers. + The box extends from the first quartile (Q1) to the third + quartile (Q3) of the data, with a line at the median. The + whiskers extend from the box to the farthest point within + 1.5x the inter-quartile range (IQR) distance. Flier points + are those past the end of the whiskers. See https://en.wikipedia.org/wiki/Box_plot for reference. .. code-block:: none From 4beb17bb02792db3e26e583de55b18bf179152bc Mon Sep 17 00:00:00 2001 From: RadostW <51670923+RadostW@users.noreply.github.com> Date: Thu, 2 Feb 2023 20:37:52 +0100 Subject: [PATCH 2/4] remove traling whitespace --- lib/matplotlib/axes/_axes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 8117364e9169..58bc546f40f2 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3722,10 +3722,10 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, """ Draw a box and whisker plot. - The box extends from the first quartile (Q1) to the third - quartile (Q3) of the data, with a line at the median. The - whiskers extend from the box to the farthest point within - 1.5x the inter-quartile range (IQR) distance. Flier points + The box extends from the first quartile (Q1) to the third + quartile (Q3) of the data, with a line at the median. The + whiskers extend from the box to the farthest point within + 1.5x the inter-quartile range (IQR) distance. Flier points are those past the end of the whiskers. See https://en.wikipedia.org/wiki/Box_plot for reference. From d23698a23191625dd52a5d2d28cc5842c087ec97 Mon Sep 17 00:00:00 2001 From: RadostW <51670923+RadostW@users.noreply.github.com> Date: Fri, 3 Feb 2023 10:19:23 +0100 Subject: [PATCH 3/4] Update _axes.py Change to consensus wording See: https://github.com/matplotlib/matplotlib/pull/25135/files#r1095049218 --- lib/matplotlib/axes/_axes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 58bc546f40f2..6b5459d2df51 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3721,12 +3721,12 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, capwidths=None): """ Draw a box and whisker plot. - + The box extends from the first quartile (Q1) to the third - quartile (Q3) of the data, with a line at the median. The - whiskers extend from the box to the farthest point within - 1.5x the inter-quartile range (IQR) distance. Flier points - are those past the end of the whiskers. + quartile (Q3) of the data, with a line at the median. + The whiskers extend from the box to the farthest data point + lying within 1.5x the inter-quartile range (IQR) from the box. + Flier points are those past the end of the whiskers. See https://en.wikipedia.org/wiki/Box_plot for reference. .. code-block:: none From 7f95c71c602b5f49c5587498df328bfe880e9ea6 Mon Sep 17 00:00:00 2001 From: RadostW <51670923+RadostW@users.noreply.github.com> Date: Fri, 3 Feb 2023 10:20:41 +0100 Subject: [PATCH 4/4] Update _axes.py remove trailing whitespace --- lib/matplotlib/axes/_axes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 6b5459d2df51..4268d25d68b4 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3721,7 +3721,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, capwidths=None): """ Draw a box and whisker plot. - + The box extends from the first quartile (Q1) to the third quartile (Q3) of the data, with a line at the median. The whiskers extend from the box to the farthest data point