-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Move "howto interpreting box plots" to boxplot docstring #19860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3714,6 +3714,28 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, | |
meanprops : dict, default: None | ||
The style of the mean. | ||
|
||
Notes | ||
----- | ||
Box plots provide insight into distribution properties of the data. | ||
However, they can be challenging to interpret for the unfamiliar | ||
reader. The figure below illustrates the different visual features of | ||
a box plot. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. consider also linking to the website version so that people displaying the docstring at their terminal have somewhere to click or alternatively just replace the png by some ascii art:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a link to wikipedia, which IMHO is sufficient. Furthermore, this note only gives additional context. I assume that only a minority of people will try to learn from the docstring (It's rather used for looking up signature and specific parameters). I don't want to jump extra hoops here. You are welcome to do more yourself. |
||
|
||
.. image:: /_static/boxplot_explanation.png | ||
:alt: Illustration of box plot features | ||
:scale: 50 % | ||
|
||
The whiskers mark the range of the non-outlier data. The most common | ||
definition of non-outlier is ``[Q1 - 1.5xIQR, Q3 + 1.5xIQR]``, which | ||
is also the default in this function. Other whisker meanings can be | ||
applied via the *whis* parameter. | ||
|
||
See `Box plot <https://en.wikipedia.org/wiki/Box_plot>`_ on Wikipedia | ||
for further information. | ||
|
||
Violin plots (`~.Axes.violinplot`) add even more detail about the | ||
statistical distribution by plotting the kernel density estimation | ||
(KDE) as an estimation of the probability density function. | ||
""" | ||
|
||
# Missing arguments default to rcParams. | ||
|
Uh oh!
There was an error while loading. Please reload this page.