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

Skip to content

Commit a99c023

Browse files
committed
API: moved new autorange opt to the end of fxn sig
1 parent c887ad7 commit a99c023

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,8 +1760,8 @@ def delete_masked_points(*args):
17601760
return margs
17611761

17621762

1763-
def boxplot_stats(X, whis=1.5, autorange=False, bootstrap=None,
1764-
labels=None):
1763+
def boxplot_stats(X, whis=1.5, bootstrap=None, labels=None,
1764+
autorange=False):
17651765
"""
17661766
Returns list of dictionaries of statistics used to draw a series
17671767
of box and whisker plots. The `Returns` section enumerates the
@@ -1774,6 +1774,7 @@ def boxplot_stats(X, whis=1.5, autorange=False, bootstrap=None,
17741774
X : array-like
17751775
Data that will be represented in the boxplots. Should have 2 or
17761776
fewer dimensions.
1777+
17771778
whis : float, string, or sequence (default = 1.5)
17781779
As a float, determines the reach of the whiskers past the first
17791780
and third quartiles (e.g., Q3 + whis*IQR, QR = interquartile
@@ -1785,18 +1786,21 @@ def boxplot_stats(X, whis=1.5, autorange=False, bootstrap=None,
17851786
minimum and maximum of the data. In the edge case that the 25th
17861787
and 75th percentiles are equivalent, `whis` can be automatically
17871788
set to ``'range'`` via the `autorange` option.
1788-
autorange : bool, optional (False)
1789-
When `True` and the data are distributed such that the 25th and
1790-
75th percentiles are equal, ``whis`` is set to ``'range'`` such
1791-
that the whisker ends are at the minimum and maximum of the
1792-
data.
1789+
17931790
bootstrap : int, optional
17941791
Number of times the confidence intervals around the median
17951792
should be bootstrapped (percentile method).
1793+
17961794
labels : array-like, optional
17971795
Labels for each dataset. Length must be compatible with
17981796
dimensions of `X`.
17991797
1798+
autorange : bool, optional (False)
1799+
When `True` and the data are distributed such that the 25th and
1800+
75th percentiles are equal, ``whis`` is set to ``'range'`` such
1801+
that the whisker ends are at the minimum and maximum of the
1802+
data.
1803+
18001804
Returns
18011805
-------
18021806
bxpstats : list of dict

0 commit comments

Comments
 (0)