Makie.jl
Makie.jl copied to clipboard
Band plot ignores alpha keyword
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))
I had a similar experience. Thanks for the workaround of putting color and alpha together as a tuple
I also had this issue. Thanks for the workaround!
We should still fix this - people specifying color as e.g. Cycled
won't have the option of a color tuple
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
Works for me in GLMakie and WGLMakie on master. Doesn't work in CairoMakie