Skip to content

Commit d63b854

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

File tree

5 files changed

+514
-502
lines changed

5 files changed

+514
-502
lines changed

lib/matplotlib/axes.py

Lines 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.
-1.17 KB
Loading

0 commit comments

Comments
 (0)