Skip to content

Commit 5ba30aa

Browse files
committed
DOC: formatted key-value list as a table and added some latex math
1 parent 3b99630 commit 5ba30aa

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

lib/matplotlib/cbook.py

+18-11
Original file line numberDiff line numberDiff line change
@@ -1884,22 +1884,29 @@ def boxplot_stats(X, whis=1.5, bootstrap=None, labels=None):
18841884
-------
18851885
bxpstats : A list of dictionaries containing the results for each column
18861886
of data. Keys of each dictionary are the following:
1887-
- label = tick label for the boxplot
1888-
- mean = mean value (can plot as a line or point)
1889-
- median = 50th percentile
1890-
- q1 = first quartile (25th pctl)
1891-
- q3 = third quartile (75 (pctl)
1892-
- cilo = lower notch around the median
1893-
- ciho = upper notch around the median
1894-
- whislo = end of the lower whisker
1895-
- whishi = end of the upper whisker
1896-
- fliers = outliers
1887+
1888+
======== ===================================
1889+
Key Value Description
1890+
======== ===================================
1891+
label tick label for the boxplot
1892+
mean arithemetic mean value
1893+
median 50th percentile
1894+
q1 first quartile (25th percentile)
1895+
q3 third quartile (75th percentile)
1896+
cilo lower notch around the median
1897+
ciho upper notch around the median
1898+
whislo end of the lower whisker
1899+
whishi end of the upper whisker
1900+
fliers outliers
1901+
======== ===================================
18971902
18981903
18991904
Notes
19001905
-----
19011906
Non-bootstrapping approach to confidence interval uses Gaussian-based
1902-
asymptotic approximation.
1907+
asymptotic approximation:
1908+
1909+
.. math:: \mathrm{med} \pm 1.57 \times \frac{\mathrm{iqr}}{\sqrt{N}}
19031910
19041911
General approach from:
19051912
McGill, R., Tukey, J.W., and Larsen, W.A. (1978) "Variations of

0 commit comments

Comments
 (0)