10000 Merge pull request #1775 from tacaswell/issue_1763 · matplotlib/matplotlib@d99bb88 · GitHub
[go: up one dir, main page]

Skip to content

Commit d99bb88

Browse files
committed
Merge pull request #1775 from tacaswell/issue_1763
Issue #1763
2 parents ccd48cb + 6fdc336 commit d99bb88

File tree

5 files changed

+687
-2
lines changed

5 files changed

+687
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8108,7 +8108,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81088108
hist_kwargs['new'] = True
81098109

81108110
n = []
8111-
mlast = bottom
8111+
mlast = None
81128112
# reversed order is necessary so when stacking histogram, first dataset is on top
81138113
# if histogram isn't stacked, this doesn't make any difference
81148114
for i in reversed(xrange(nx)):
@@ -8125,6 +8125,8 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81258125
mlast[:] = m
81268126
n.append(m)
81278127

8128+
8129+
81288130
if cumulative:
81298131
slc = slice(None)
81308132
if cbook.is_numlike(cumulative) and cumulative < 0:
@@ -8175,7 +8177,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81758177
for m, c in zip(n, color):
81768178
patch = _barfunc(bins[:-1]+boffset, m, width,
81778179
align='center', log=log,
8178-
color=c)
8180+
color=c, bottom=bottom)
81798181
patches.append(patch)
81808182
boffset += dw
81818183

Binary file not shown.
Loading

0 commit comments

Comments
 (0)
0