Skip to content

Commit 6571818

Browse files
committed
fix formatting & remove capstyle in default params
1 parent 67d26cc commit 6571818

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
41474147
--------
41484148
.. plot:: gallery/statistics/bxp.py
41494149
"""
4150-
4150+
medianprops["solid_capstyle"] = "butt" # Clamp median line to edge of box
41514151
# lists of artists to be output
41524152
whiskers = []
41534153
caps = []

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def __init__(self, xdata, ydata, *,
297297
markerfacecoloralt='none',
298298
fillstyle=None,
299299
antialiased=None,
300-
dash_capstyle="butt",
300+
dash_capstyle=None,
301301
solid_capstyle=None,
302302
dash_joinstyle=None,
303303
solid_joinstyle=None,

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,7 @@ def test_boxplot_median_bound_by_box(fig_test, fig_ref):
32313231
fig_test.subplots().boxplot(data, medianprops=medianprops_test)
32323232
fig_ref.subplots().boxplot(data, medianprops=medianprops_ref)
32333233

3234+
32343235
@image_comparison(['bxp_withnotch.png'],
32353236
remove_text=True,
32363237
savefig_kwarg={'dpi': 40},

0 commit comments

Comments
 (0)