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

bounds.rescale_max yields NaN when maximum of data is 0 #16

Closed
bersbersbers opened this issue Oct 27, 2020 · 0 comments
Closed

bounds.rescale_max yields NaN when maximum of data is 0 #16

bersbersbers opened this issue Oct 27, 2020 · 0 comments
Labels

Comments

@bersbersbers
Copy link

bersbersbers commented Oct 27, 2020

I just tried to use plotnine to plot data which has values [-5, -4, -3, -2, -1, 0], and received a lot of warnings and an improper plot, in line with this (mis?)behavior:

>>> mizani.bounds.rescale_max([-5, -4, -3, -2, -1, 0])
array([-inf, -inf, -inf, -inf, -inf,  nan])
@has2k1 has2k1 added the bug label Oct 28, 2020
has2k1 added a commit that referenced this issue Oct 28, 2020
@has2k1 has2k1 closed this as completed in 628dd62 Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants