ColorSchemes.jl icon indicating copy to clipboard operation
ColorSchemes.jl copied to clipboard

Disambiguating overlapping colorscheme names

Open asinghvi17 opened this issue 5 years ago • 1 comments
trafficstars

There's some discussion going on in PlotUtils about switching to ColorSchemes as a provider of color gradients. However, there are some overlaps in PlotUtils' gradient names; for example,:rainbow exists in misc and colorcet.

It would be nice to have a way we all agree on to handle that; either by manually ensuring that there are no namespace conflicts, or some other system.

(Also, quick question - is the library threadsafe? It looks like all the colorschemes are stored in a global Dict, which may lead to some issues. I'll test it in a bit.)

asinghvi17 avatar Apr 02 '20 09:04 asinghvi17

Threadsafe? I don't know, sorry, and will watch your analysis with interest if not understanding ... :)

As for the namespace issue, I'd guess that more people have used PlotUtils than ColorSchemes, so perhaps the ones in PlotUtils should take precedence. (Although the PlotUtils:rainbow scheme is just a renamed ColorSchemes.rainbow_bgyr_35_85_c73_n256` I think.)

I'm in favour of keeping ColorSchemes simple, rather than getting complicated like PlotUtils... :)

cormullion avatar Apr 02 '20 10:04 cormullion