# Fillalpha in Makie band plot

**URL:** <https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469>\
**Category:** Visualization\
**Tags:** plotting, makie\
**Created:** [February 15, 2022, 6:09am UTC](https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469 "2022-02-15T06:09:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielVandH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielvandh/32/31134_2.png) [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Post date:** [February 15, 2022, 6:09am UTC](https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469/1 "2022-02-15T06:09:09Z")

</div>

Is there a way to set the transparency of the filled band plots from `Makie.jl`? For example, what option can I add onto `band!` in the following code to give transparency, similarly to `fillalpha` in `Plots.jl`?

```julia
using CairoMakie
f = Figure()
Axis(f[1, 1])
xs = 1:0.2:10
ys_low = -0.2 .* sin.(xs) .- 0.25
ys_high = 0.2 .* sin.(xs) .+ 0.25
band!(xs, ys_low, ys_high)
band!(xs, ys_low .- 1, ys_high .-1, color = :red)
f

```

I tried the attributes listed at [band](https://makie.juliaplots.org/stable/examples/plotting_functions/band/index.html) but none of them see to relate to the opacity.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [February 15, 2022, 7:01am UTC](https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469/2 "2022-02-15T07:01:33Z")

</div>

A tuple like `(:red, 0.5)` can be used as a shorthand for a transparent color.
