8000 Check that bxp() applies the boxplot.boxprops.linewidth rc. · matplotlib/matplotlib@84bdc71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84bdc71

Browse files
committed
Check that bxp() applies the boxplot.boxprops.linewidth rc.
1 parent e1cb5d2 commit 84bdc71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,8 +2121,8 @@ def _bxp_test_helper(
21212121
# Work around baseline images generate back when bxp did not respect the
21222122
# boxplot.boxprops.linewidth rcParam when patch_artist is False.
21232123
if not bxp_kwargs.get('patch_artist', False):
2124-
(bxp_kwargs.setdefault('boxprops', {})
2125-
.setdefault('linewidth', matplotlib.rcParams["lines.linewidth"]))
2124+
matplotlib.rcParams['boxplot.boxprops.linewidth'] = \
2125+
matplotlib.rcParams['lines.linewidth']
21262126
ax.bxp(transform_stats(logstats), **bxp_kwargs)
21272127

21282128

0 commit comments

Comments
 (0)
0