uxarray icon indicating copy to clipboard operation
uxarray copied to clipboard

UXarray Themed Colormaps

Open aaronzedwick opened this issue 1 year ago • 18 comments

Closes #786

Overview

Adds two UXarray-styled colormaps: diverging and sequential. Diverging: image Sequential: image

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

aaronzedwick avatar Aug 01 '24 19:08 aaronzedwick

Check out this pull request on  ReviewNB

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')

philipc2 avatar Aug 01 '24 20:08 philipc2

The addition to the user guide section also appears to be failing.

image

philipc2 avatar Aug 01 '24 20:08 philipc2

How do you think the colors look? @rajeeja @philipc2

aaronzedwick avatar Aug 02 '24 11:08 aaronzedwick

How do you think the colors look? @rajeeja @philipc2

👍

rajeeja avatar Aug 02 '24 13:08 rajeeja

@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.

image

For reference, xarray:

image

It would be nice to put together a style guide for our package, logos, and design. Something like:

image

philipc2 avatar Aug 12 '24 22:08 philipc2

I've always liked the idea of this style of logo, which emphasizes the spherical unstructured grid support we provide.

image

philipc2 avatar Aug 12 '24 22:08 philipc2

We could also adapt the Project Raijin logo for UXarray, which I think looks quite nice. We could modify the colors too.

image

philipc2 avatar Aug 12 '24 22:08 philipc2

We could also adapt the Project Raijin logo for UXarray, which I think looks quite nice. We could modify the colors too.

image

I like these colors a lot more than the other ones.

aaronzedwick avatar Aug 13 '24 14:08 aaronzedwick

Here are the colors from the new logo if you'd like to update these colormaps:

Blue: #016691

Green: #049390

Gray: #343741

philipc2 avatar Aug 14 '24 20:08 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.

image For reference, xarray: image It would be nice to put together a style guide for our package, logos, and design. Something like:

image

+1 let's get this done Friday at UChicago.

rajeeja avatar Aug 15 '24 03:08 rajeeja

@philipc2 I really like how these came out.

image image image

aaronzedwick avatar Aug 15 '24 20:08 aaronzedwick

@philipc2 I really like how these came out.

image image image

These are very pretty!

One small nitpick: can you make the blue & green ones start at zero (white)?

philipc2 avatar Aug 15 '24 20:08 philipc2

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.

image

philipc2 avatar Aug 15 '24 20:08 philipc2

@philipc2 I really like how these came out. image image image

These are very pretty!

One small nitpick: can you make the blue & green ones start at zero (white)?

Oh yeah that would be important!

aaronzedwick avatar Aug 15 '24 20:08 aaronzedwick

image What do you wanna call this one then?

aaronzedwick avatar Aug 15 '24 20:08 aaronzedwick

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.

aaronzedwick avatar Aug 15 '24 20:08 aaronzedwick

image

Can we also add edges to this plot? Maybe a title would be good too for each.

philipc2 avatar Aug 19 '24 16:08 philipc2