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

Skip to content

Commit 22a9f8f

Browse files
committed
API: only shrink hist bars if not stacked
Partially addresses #6876
1 parent 591b6d6 commit 22a9f8f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6206,7 +6206,8 @@ def _normalize_input(inp, ename='input'):
62066206

62076207
if rwidth is not None:
62086208
dr = min(1.0, max(0.0, rwidth))
6209-
elif len(n) > 1:
6209+
elif (len(n) > 1 and
6210+
((not stacked) or rcParams['_internal.classic_mode'])):
62106211
dr = 0.8
62116212
else:
62126213
dr = 1.0

0 commit comments

Comments
 (0)