uxarray
uxarray copied to clipboard
UXarray Themed Colormaps
Closes #786
Overview
Adds two UXarray-styled colormaps: diverging and sequential.
Diverging:
Sequential:
Expected Usage
import uxarray as ux
uxds = ux.open_dataset(grid_path, data_path)
uxds[v1].plot(cmap=ux.cmaps.sequential, backend='matplotlib')
uxds[v1].plot(cmap=ux.cmaps.diverging, backend='matplotlib')
PR Checklist
General
- [x] An issue is linked created and linked
- [x] Add appropriate labels
- [x] Filled out Overview and Expected Usage (if applicable) sections
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Also from the usage example in the overview, it should be something like the following:
import uxarray as ux
uxds[v1].plot(cmap=ux.cmaps.sequential, backend='matplotlib')
uxds[v1].plot(cmap=ux.cmaps.diverging, backend='matplotlib')
The addition to the user guide section also appears to be failing.
How do you think the colors look? @rajeeja @philipc2
How do you think the colors look? @rajeeja @philipc2
👍
@aaronzedwick
The colormaps look great, but I'm wondering if maybe we would like to consider different colors all together for the style of Uxarray?
We still don't have a true package logo. Would you like to sit down together (including @rajeeja too) to brainstorm some ideas for the theme of Uxarray?
For the text of the logo, I was considering something like the following.
For reference, xarray:
It would be nice to put together a style guide for our package, logos, and design. Something like:
I've always liked the idea of this style of logo, which emphasizes the spherical unstructured grid support we provide.
We could also adapt the Project Raijin logo for UXarray, which I think looks quite nice. We could modify the colors too.
We could also adapt the Project Raijin logo for UXarray, which I think looks quite nice. We could modify the colors too.
![]()
I like these colors a lot more than the other ones.
Here are the colors from the new logo if you'd like to update these colormaps:
Blue: #016691
Green: #049390
Gray: #343741
@aaronzedwick
The colormaps look great, but I'm wondering if maybe we would like to consider different colors all together for the style of Uxarray?
We still don't have a true package logo. Would you like to sit down together (including @rajeeja too) to brainstorm some ideas for the theme of Uxarray?
For the text of the logo, I was considering something like the following.
For reference, xarray:
It would be nice to put together a style guide for our package, logos, and design. Something like:
+1 let's get this done Friday at UChicago.
@philipc2 I really like how these came out.
@philipc2 I really like how these came out.
![]()
![]()
These are very pretty!
One small nitpick: can you make the blue & green ones start at zero (white)?
Can you see how a colormap would look if it's a White -> Green -> Blue sequence?
A lot of the sequential ones on mpl appear to start with white.
@philipc2 I really like how these came out.
![]()
![]()
These are very pretty!
One small nitpick: can you make the blue & green ones start at zero (white)?
Oh yeah that would be important!
What do you wanna call this one then?
Everything looks great here! Once we have the following color maps, it'll be ready!
- Sequential: White, Blue, Green
- Sequential: White, Blue
- Sequential: White, Green
- Diverging: Blue, White, Green
The blue looks darker to me so I think it makes more sense to go green-blue with the colors.
Can we also add edges to this plot? Maybe a title would be good too for each.
For reference, xarray:
It would be nice to put together a style guide for our package, logos, and design. Something like:

