-
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
Cannot use alpha with numeric color mapping #371
Comments
This will be slightly trickier to solve in a clean way. Makie support |
Thanks for the workaround with df = (x=vec((1:3) .+ rand(200)'),
y=vec((1:3) .+ rand(200)'),
c=vec([1,2,5] .+ rand(200)'))
plt = data(df) * mapping(:x, :y, color=:c) * visual(colormap=(:viridis, 0.3))
draw(plt, axis=(width=300, height=200)) |
@knuesel Have you since figured out a way to prevent the colorbar from being affected? I'm trying a similar plot. |
@czimm79 no for now I'm just not using transparency in those plots with continuous color scale. |
just to say the original example works for me now; I'm on AlgebraOfGraphics v0.6.12
CairoMakie v0.9.4
Makie v0.18.4 |
I still get an error on
@ericphanson are you sure you removed |
Oh oops, no I just copied the example code as-is. I must've misread, sorry. |
The following works fine:
but if I remove the
nonnumeric
I getMethodError: no method matching color(::Vector{Int64})
.I guess this will be fixed at the same time as #225, but in the meantime it would be nice to have a workaround, so that
alpha
can be used with continous color scales...Stack trace
Tested with AlgebraOfGraphics 0.6.5 and Makie 0.16.5.
The text was updated successfully, but these errors were encountered: