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

Band plot ignores alpha keyword

Open TomRottier opened this issue 1 year ago • 4 comments

    f = Figure()
    ax1 = Axis(f[1, 1], title="alpha = 0.5")
    ax2 = Axis(f[1, 2], title="color = (:red, 0.5)")
    xs = 1:10
    lower, upper = fill(-1.0, 10), fill(1.0, 10)
    band!(ax1, xs, lower, upper, color=:red, alpha=0.5)
    band!(ax2, xs, lower, upper, color=(:red, 0.5))

makie_issue

TomRottier avatar Nov 06 '23 18:11 TomRottier

I had a similar experience. Thanks for the workaround of putting color and alpha together as a tuple

bguo068 avatar Jan 04 '24 03:01 bguo068

I also had this issue. Thanks for the workaround!

wsshin avatar Feb 05 '24 16:02 wsshin

We should still fix this - people specifying color as e.g. Cycled won't have the option of a color tuple

asinghvi17 avatar Feb 05 '24 16:02 asinghvi17

Would just need an alpha here: https://github.com/MakieOrg/Makie.jl/blob/master/src/basic_recipes/band.jl#L14 And then needs to be added to attr here: https://github.com/MakieOrg/Makie.jl/blob/master/src/basic_recipes/band.jl#L56

SimonDanisch avatar Feb 07 '24 09:02 SimonDanisch

Works for me in GLMakie and WGLMakie on master. Doesn't work in CairoMakie

ffreyer avatar Feb 19 '24 20:02 ffreyer