Skip to content
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*.swp
.idea
.vscode/

Comment thread
kidkoder432 marked this conversation as resolved.
Resolved
# Compiled source #
###################
*.a
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*.
Comment thread
rcomer marked this conversation as resolved.
Resolved

vert : bool, default: True
If `True` (default), makes the boxes vertical.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, xdata, ydata, *,
markerfacecoloralt='none',
fillstyle=None,
antialiased=None,
dash_capstyle=None,
dash_capstyle="butt",
Comment thread
rcomer marked this conversation as resolved.
Resolved
solid_capstyle=None,
dash_joinstyle=None,
solid_joinstyle=None,
Expand Down
8 changes: 8 additions & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3223,6 +3223,14 @@ def test_bxp_customwhisker():
whiskerprops=dict(linestyle='-', color='m', lw=3)))


@check_figures_equal()
def test_boxplot_median_bound_by_box(fig_test, fig_ref):
data = np.arange(3)
medianprops_test = {"linewidth": 12}
medianprops_ref = {**medianprops_test, "solid_capstyle": "butt"}
fig_test.subplots().boxplot(data, medianprops=medianprops_test)
fig_ref.subplots().boxplot(data, medianprops=medianprops_ref)

@image_comparison(['bxp_withnotch.png'],
remove_text=True,
savefig_kwarg={'dpi': 40},
Expand Down