-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hex conversion with symbol not supported for gradient colors #459
Comments
What version of Colors.jl are you using? Edit: julia> PlotUtils.cgrad(:viridis).colors |> typeof # PlotUtils v1.0.10 (which is compatible with Colors v0.12)
ColorSchemes.ColorScheme{Array{RGBA{Float64},1},String,String} julia> PlotUtils.cgrad(:viridis).colors |> typeof # PlotUtils v0.6.5 (which is also compatible with Colors v0.12)
Array{RGBA{Float64},1} Since PlotUtils v0.6.5 is also compatible with Colors v0.12, you need to analyze what is restricting the version of Colors. |
I'm using the most recent version for all packages (run pkg> update):
|
What does |
Seems a dependency issue with other packages:
|
Dependency problems don't always have a single cause, but I am concerned about the restrictions imposed by RecipesBase.jl. https://github.com/JuliaData/JuliaDB.jl/pulls/app%2Fgithub-actions cf: |
I'm not a user or a developer with commit privileges of JuliaDB, so I'm not going to take any specific action on this issue. Perhaps Discourse, Slack, etc. would be a good way to get the attention of the maintainers of JuliaDB. If that doesn't solve the problem, I think the only solution is to manually edit the compatibility caps of JuliaDB (or something). I don't think it's a good idea to backport the feature to Colors v0.11. Although it's not going as well as we'd like, we should move forward to the release of Colors v1.0. |
Ok no prob - it's not anything urgent either, is me playing with a side project ;) I'd keep the issue open (in case someone else runs into this as well) and eventually close it when JuliaDB's compatibility caps are updated. |
This should be filed with packages that are capping Colors. |
Hi!
I'm trying to get hex codes for gradient palettes in cgradients() from PlotUtils:
c_map2 = map(x -> hex(x), cgrad(:lime_grad).colors)
The above line works, but if I specify the parameter for hex it doesn't:
c_map1 = map(x -> hex(x,:rrggbbaa), cgrad(:lime_grad).colors)
MethodError: no method matching hex(::ColorTypes.RGBA{Float64}, ::Symbol)
The text was updated successfully, but these errors were encountered: