MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.36k stars 295 forks source link

Should cgrad appear in the `colors` section of the Docs? #2748

Open aramirezreyes opened 1 year ago

aramirezreyes commented 1 year ago

Related to this discourse topic: https://discourse.julialang.org/t/how-to-specify-colors-from-a-colormap-to-use-in-a-theme-in-makie/

It seems like the way of building a vector of colors from the name of a color scheme is difficult to find in the docs.

I am out of bandwidth currently so I open it in case someone can make a PR.

jariji commented 1 year ago

Any chance it could get a less opaque name too, such as colorgradient, colorscale, or similar?

asinghvi17 commented 1 year ago

cgrad is actually from PlotUtils, so chances of renaming it are slim, plus people coming from Plots are familiar with it already. We could wrap it in another name but that seems confusing to me at least.

I thought it was mentioned there but I guess not. I'll try to add some docs about it, as well as to_colormap and categorical_colors.

jkrumbiegel commented 1 year ago

I'm making some changes to the color docs in the scalar color PR, maybe wait for that to merge (soon) so we don't conflict