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 d63b854

Browse filesBrowse files
committed
Merge remote-tracking branch 'upstream/v1.2.x'
Conflicts: lib/matplotlib/axes.py
2 parents 4fd36da + b776730 commit d63b854
Copy full SHA for d63b854

File tree

Expand file treeCollapse file tree

5 files changed

+514
-502
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+514
-502
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8352,8 +8352,10 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
83528352

83538353
if orientation == 'horizontal':
83548354
_barfunc = self.barh
8355+
bottom_kwarg = 'left'
83558356
else: # orientation == 'vertical'
83568357
_barfunc = self.bar
8358+
bottom_kwarg = 'bottom'
83578359

83588360
for m, c in zip(n, color):
83598361
if bottom is None:
@@ -8364,7 +8366,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
83648366
height = m
83658367
patch = _barfunc(bins[:-1]+boffset, height, width,
83668368
align='center', log=log,
8367-
color=c, bottom=bottom)
8369+
color=c, **{bottom_kwarg: bottom})
83688370
patches.append(patch)
83698371
if stacked:
83708372
bottom[:] = m
Binary file not shown.
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.