8000 Fix issue #4414 · Pull Request #6171 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix issue #4414 #6171

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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
1041A Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix pep8
  • Loading branch information
XivL committed Mar 17, 2016
commit e1961a1d40204c641d2d9b89e83c4ca757fc3599
7 changes: 3 additions & 4 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6250,16 +6250,15 @@ def _normalize_input(inp, ename='input'):
else:
ymin0 = max(_saved_bounds[1]*0.9, minimum)
ymax = self.dataLim.intervaly[1]

for m in n:
if np.sum(m) > 0: # make sure there are counts
if np.sum(m) > 0: # make sure there are counts
ymin = np.amin(m[m != 0])
# filter out the 0 height bins
ymin = max(ymin*0.9, minimum) if not input_empty else minimum
ymin = max(ymin*0.9,
minimum)if notinput_empty else minimum
ymin = min(ymin0, ymin)
self.dataLim.intervaly = (ymin, ymax)


if label is None:
labels = [None]
elif is_string_like(label):
Expand Down
0