JuliaGraphics / ColorSchemes.jl

colorschemes, colormaps, gradients, and palettes
http://juliagraphics.github.io/ColorSchemes.jl/
Other
187 stars 33 forks source link

Request: new rangescale option for symmetric colorschemes #88

Closed adrhill closed 2 years ago

adrhill commented 2 years ago

I'd be interested in a new rangescale option for get that automatically centers the rangescale around (-1, 1) .* maximum(abs, x) of some input x, such that a 0 in the input maps to 0.5 on symmetric color schemes (e.g.:vik, :bwr, :curl, :balance, :delta).

I would gladly open a PR if I had a clue how to name this option.  😄 Maybe :symmetric, :symmetricextrema, :extremasymmetric?

cormullion commented 2 years ago

Nice idea. ‘symmetric’ is good, ‘centered’ or ‘midpoint’ would convey something of the idea.

adrhill commented 2 years ago

I like :centered since the colorschemes are not actually symmetric. 👍