-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Boxplot fix median line extending past box boundaries #19409 #26462
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
53f5132
5d0a323
67d26cc
6571818
b1d8b51
0a9d0f8
d1ba031
f2fdc2c
8536a35
0f2dee1
0e98cd8
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 |
---|---|---|
|
@@ -4095,7 +4095,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True, | |
|
||
capwidths : float or array-like, default: None | ||
Either a scalar or a vector and sets the width of each cap. | ||
The default is ``0.5*(with of the box)``, see *widths*. | ||
The default is ``0.5*(width of the box)``, see *widths*. | ||
|
||
vert : bool, default: True | ||
If `True` (default), makes the boxes vertical. | ||
|
@@ -4147,6 +4147,17 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True, | |
-------- | ||
.. plot:: gallery/statistics/bxp.py | ||
""" | ||
# Clamp median line to edge of box by default. | ||
medianprops = { | ||
"solid_capstyle": "butt", | ||
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. I think we should unversally "solid_capstyle" and "dashed_capstyle" to "butt" for both 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. done |
||
"dash_capstyle": "butt", | ||
**(medianprops or {}), | ||
} | ||
meanprops = { | ||
"solid_capstyle": "butt", | ||
"dash_capstyle": "butt", | ||
**(meanprops or {}), | ||
} | ||
|
||
# lists of artists to be output | ||
whiskers = [] | ||
|
Uh oh!
There was an error while loading. Please reload this page.