Skip to content
Prev Previous commit
Next Next commit
fix formatting & remove capstyle in default params
  • Loading branch information
kidkoder432 committed Aug 10, 2023
commit 6571818a749912815fc722415a6bcfa0c592bad2
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4147,7 +4147,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
--------
.. plot:: gallery/statistics/bxp.py
"""

medianprops["solid_capstyle"] = "butt" # Clamp median line to edge of box
# lists of artists to be output
whiskers = []
caps = []
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="butt",
dash_capstyle=None,
solid_capstyle=None,
dash_joinstyle=None,
solid_joinstyle=None,
Expand Down
1 change: 1 addition & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3231,6 +3231,7 @@ def test_boxplot_median_bound_by_box(fig_test, fig_ref):
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