Skip to content

Check vmin/vmax are valid when doing inverse in LogNorm #13970

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

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

dstansby
Copy link
Member

Sort of related to #13967, when calling inverse() on a LogNorm with invalid limits, there used to be some sort of floating point calculation error, this changes the error to be a bit better and warn the user that the problem is invalid vmin or vmax values.

@dstansby dstansby closed this Apr 17, 2019
@dstansby dstansby reopened this Apr 17, 2019
@dstansby dstansby added this to the v3.2.0 milestone Apr 17, 2019
@anntzer
Copy link
Contributor

anntzer commented Apr 17, 2019

Do we actually need to require that vmin<vmax? It looks like vmin>vmax just results in a "decreasing" log-norm, which isn't really problematic in itself.

@dstansby
Copy link
Member Author

I'm not sure, maybe that could be left for another PR/issue though.

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conditional on ci

@jklymak jklymak merged commit b840d3a into matplotlib:master Apr 18, 2019
@dstansby dstansby deleted the lognorm-inverse-check branch April 18, 2019 14:00
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 this pull request may close these issues.

3 participants