-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added color maps * Updated colors * Updated cmaps.py * Updated __init__.py * Update Remapping Notebook * Update __init__.py * Updated and added colormaps * Updated colors * Update cmaps.py * Update remapping.ipynb * Update remapping.ipynb * Added plot names and edges --------- Co-authored-by: Philip Chmielowiec <[email protected]>
- Loading branch information
1 parent
1c07b70
commit 38ae001
Showing
3 changed files
with
141 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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 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 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,33 @@ | ||
from matplotlib.colors import LinearSegmentedColormap | ||
|
||
|
||
diverging = LinearSegmentedColormap.from_list( | ||
"diverging", | ||
( | ||
(0.000, (0.016, 0.576, 0.565)), | ||
(0.500, (1.000, 1.000, 1.000)), | ||
(1.000, (0.004, 0.400, 0.569)), | ||
), | ||
) | ||
|
||
# UXarray themed sequential color map | ||
sequential = LinearSegmentedColormap.from_list( | ||
"sequential", ((0.000, (0.004, 0.400, 0.569)), (1.000, (0.016, 0.576, 0.565))) | ||
) | ||
|
||
sequential_blue = LinearSegmentedColormap.from_list( | ||
"sequential_blue", ((0.000, (1.000, 1.000, 1.000)), (1.000, (0.004, 0.400, 0.569))) | ||
) | ||
|
||
sequential_green = LinearSegmentedColormap.from_list( | ||
"sequential_green", ((0.000, (1.000, 1.000, 1.000)), (1.000, (0.016, 0.576, 0.565))) | ||
) | ||
|
||
sequential_green_blue = LinearSegmentedColormap.from_list( | ||
"sequential_green_blue", | ||
( | ||
(0.000, (1.000, 1.000, 1.000)), | ||
(0.500, (0.016, 0.576, 0.565)), | ||
(1.000, (0.004, 0.400, 0.569)), | ||
), | ||
) |