{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Add getters and _repr_html_ for over/under/bad values of Colormap objects. #17900
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
timhoffm
merged 20 commits into
matplotlib:master
from
bdice:colormap-repr-under-over-bad
Aug 19, 2020
Merged
Changes from 14 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
924aa61
Add get_bad, get_under, get_over.
bdice c7115f0
Add missing docstring to is_gray.
bdice 2fd8ed0
Add under/over/bad colors to Colormap _repr_html_.
bdice 4514171
Add tests for getters.
bdice 90dc80e
Add What's New.
bdice 8dcb3ea
Fix flake8, reorder words.
bdice c6fc989
Use same_color for testing.
bdice feb1f87
Apply suggestions from code review
bdice 642477e
Use values outside [0, 1] for testing under/over.
bdice c43cceb
Remove reference to norm.clip in docstrings.
bdice 9ca1893
Move under/bad/over below the colormap.
bdice 12fd588
Apply CSS suggestions from @greglucas.
bdice df1cd26
Fix references to documentation.
bdice 64faef0
Use max-width to make content more responsive.
bdice a55cbf7
Use one line for short docstrings.
bdice 5b095f9
Use f-strings and implicit continuations.
bdice 4581ab8
Use private module constant for PNG representation size.
bdice 057dc55
Improve HTML repr tests.
bdice e398f92
Assert base64 encoded png is in HTML representation.
bdice 977677a
Fix flake8.
bdice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Get under/over/bad colors of Colormap objects | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| `matplotlib.colors.Colormap` now has methods | ||
| `~.colors.Colormap.get_under`, `~.colors.Colormap.get_over`, | ||
| `~.colors.Colormap.get_bad` for the colors used for out-of-range and masked | ||
| values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
You can’t perform that action at this time.

Uh oh!
There was an error while loading. Please reload this page.