Skip to content

Barplot call crashes when called with yscale="log" and bins with h=0 #14981

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
kopytjuk opened this issue Aug 5, 2019 · 1 comment · Fixed by #14581
Closed

Barplot call crashes when called with yscale="log" and bins with h=0 #14981

kopytjuk opened this issue Aug 5, 2019 · 1 comment · Fixed by #14581
Milestone

Comments

@kopytjuk
Copy link
Contributor

kopytjuk commented Aug 5, 2019

Contrary to that, when called with yscale="linear" and bins with height=0 works everything as expected.

ymin = min(h for h in height if h > 0)

@anntzer
Copy link
Contributor

anntzer commented Aug 5, 2019

A minimal repro is yscale("log"); bar([0], [0]) which gives

ValueError: min() arg is an empty sequence

#14581 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants