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
Add PiecewiseLinearNorm #4666
Closed
Closed
Add PiecewiseLinearNorm #4666
Commits on Mar 30, 2015
-
Borrows heavily from @Tillsen's solution found on StackOverflow here: http://goo.gl/RPXMYB Used with his permission dicussesd on Github here: matplotlib#3858
-
-
Commits on Jun 6, 2015
-
removed OffsetNorm.inverse method
This will allow the ticks of colors to be spaced as desired. Also simplified the math per the brilliant @joferkington http://stackoverflow.com/a/20146989/1552748
-
attempting to create a baseline image
couldn't actually run the test suite b/c python iesn't installed as a framework.
Commits on Jun 8, 2015
Commits on Jul 11, 2015
Commits on Sep 3, 2015
-
-
Need to allow it in __call__ since colorbar can pass a value for clip.
-
Use process_value in PiecewiseLinearNorm
To make it more similar to the other norms Also remove misleading comment about returning scalars
-
Return a scalar when passed in a scalar
Since possibly some earlier versions of numpy returned a scalar, wrap the value in atleast_1d before indexing.
-
Return 0.5 for vcenter == vmax
np.interp handles the case vmin == vcenter, we have to add a special case to make the last test case pass
-
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.