Repository navigation
Offer a diverging colormap - #20
Merged
Merged
Conversation
CET_R1 is colorcet's rainbow (its middle is yellow), so the picker had no map for a signed image. Add CET_D1, blue-white-red (matplotlib's coolwarm), and name it DIVERGING_COLORMAP for apps that show strains or field components.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The picker's
CET_R1was commented as diverging, but it is colorcet's rainbow: its middle entry is yellow (241, 202, 36). So there was no map on the list that shows a signed image (a strain, a field component) with zero as white.CET_D1(blue → white → red, the same table as matplotlib'scoolwarm) toCOLORMAPS, and keepsCET_R1, relabeled, since someone may be using it.DIVERGING_COLORMAP = "CET_D1", for apps that switch to it on their own. Autopilot's strain maps do this.