Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22a9f8f

Browse filesBrowse files
committed
API: only shrink hist bars if not stacked
Partially addresses matplotlib#6876
1 parent 591b6d6 commit 22a9f8f
Copy full SHA for 22a9f8f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.