-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add doc example of transparency with Geom.ribbon #1126
Comments
indeed! there is no mention of this would be a great first-time contribution. care to take a stab at fixing it? all you would need to do is follow the model here of how to programmatically specify opacity, and apply it here and here. thanks for filing an issue. |
From #611 (a workaround for now): Theme(lowlight_color=c->RGBA{Float32}(c.r, c.g, c.b, 0.2)) |
let's leave this open until it's fixed. |
thinking on this more...permitting the user to specify both |
I think # The plot panel uses fillopacity(Theme.panel_opacity)
p = plot(x=[-2,2], y=[2,-2],
Theme(panel_fill=colorant"orange", panel_opacity=0.5)
)
draw(PNG(3.3inch,3.3inch), p)
draw(SVG(3.3inch,3.3inch), p) whereas the |
Geom.ribbon
Grepping through the repo for |
As a general way of combining colors and alphas, why not use julia> using Colors
julia> coloralpha(RGB(0.5, 0.5, 0.5))
RGBA{Float64}(0.5,0.5,0.5,1.0)
julia> coloralpha(RGB(0.5, 0.5, 0.5), 0.7)
RGBA{Float64}(0.5,0.5,0.5,0.7)
julia> coloralpha(RGBA(0.5, 0.5, 0.5, 1.0), 0.7)
RGBA{Float64}(0.5,0.5,0.5,0.7)
julia> c = Lab(RGB(0.2, 0.3, 0.4))
Lab{Float64}(31.579833005156537,-1.8639258539215886,-17.85083480738884)
julia> coloralpha(c, 0.7)
LabA{Float64}(31.579833005156537,-1.8639258539215886,-17.85083480738884,0.7) That be a good basis for allowing an |
@kleinschmidt have you seen #1175 ? |
An
|
According to the documentation, it should be possible to make
Geom.ribbon
colors transparent by adding something likeTheme(lowlight_opacity=0.3)
. That does not appear to work however. This would be a great feature to have though.The text was updated successfully, but these errors were encountered: