d3 / d3-scale-chromatic

Sequential, diverging and categorical color scales.
https://d3js.org/d3-scale-chromatic
Other
798 stars 107 forks source link

Add support for rocket, mako, flare, and crest #45

Open MagsMagnoli opened 1 year ago

MagsMagnoli commented 1 year ago

https://seaborn.pydata.org/tutorial/color_palettes.html#perceptually-uniform-palettes

curran commented 1 year ago

That would be neat!

The next step is to dig up their source code.

I found this, which looks like the definitions for these: https://github.com/mwaskom/seaborn/blob/6fdf253393c27f9f2f124c63cc50351f94ca4761/seaborn/cm.py#L1565

The next step would be to reconcile this with the way the D3 interpolators are defined and introduce an implementation proposal.

Fil commented 1 year ago

I'm sharing a lot of color schemes in this collection: https://observablehq.com/collection/@fil/color-schemes

I think the implementation in https://observablehq.com/@fil/cmocean?collection=@fil/color-schemes is very similar to what's needed here?