How to make colors faint/transparent when plotting a color plane using Plots?

You can use RGBA and set alpha as last parameter:

plot([RGBA{Float64}(0.0,0.0,1.0,0.5) RGBA{Float64}(1.0,0.0,0.0,0.5); RGBA{Float64}(1.0,0.0,0.0,0.5) RGBA{Float64}(1.0,0.0,0.0,0.5)])
2 Likes