Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix step histogram endline #2372

Merged
merged 2 commits into from Sep 9, 2013
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/matplotlib/axes.py
Expand Up @@ -8455,11 +8455,11 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
xvals, yvals = [], []
for m in n:
# starting point for drawing polygon
y[0] = y[-1]
y[0] = y[1]
# top of the previous polygon becomes the bottom
y[2*len(bins)-1:] = y[1:2*len(bins)-1][::-1]
# set the top of this polygon
y[1:2*len(bins)-1:2], y[2:2*len(bins):2] = m, m
y[1:2*len(bins)-1:2], y[2:2*len(bins)-1:2] = m, m
if log:
y[y < minimum] = minimum
if orientation == 'horizontal':
Expand All @@ -8479,7 +8479,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
facecolor=c))
else:
for x, y, c in reversed(zip(xvals, yvals, color)):
split = int(len(x) / 2) + 1
split = 2 * len(bins)
patches.append(self.fill(
x[:split], y[:split],
closed=False, edgecolor=c,
Expand Down
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.