Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43de6e7

Browse files
committed
Restore white color of patch in classic mode
This has to be done via internal classic mode because it's using a rc param inherited from patch
1 parent f7d6039 commit 43de6e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,6 +3564,8 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
35643564
facecolor=rcParams['patch.facecolor'],
35653565
linewidth=rcParams['boxplot.boxprops.linewidth']
35663566
)
3567+
if rcParams['_internal.classic_mode']:
3568+
final_boxprops['facecolor'] = 'white'
35673569
else:
35683570
final_boxprops = dict(
35693571
linestyle=rcParams['boxplot.boxprops.linestyle'],

0 commit comments

Comments
 (0)