Skip to content
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

Simple opacity setting #1270

Closed
robsmith11 opened this issue Apr 5, 2019 · 2 comments
Closed

Simple opacity setting #1270

robsmith11 opened this issue Apr 5, 2019 · 2 comments

Comments

@robsmith11
Copy link

There should be an easy way to set the opacity of a geometry to a fractional value. For example, in ggplot2 one can simply write alpha=0.5, but with Gadfly, it's very verbose and non-intuitive: Theme(lowlight_color=c->RGBA{Float32}(c.r, c.g, c.b, 0.5)).

@Mattriks
Copy link
Member

Mattriks commented Apr 5, 2019

alpha functionality has been added to the master branch. You can use it now by doing add Gadfly#master. There are examples in the dev docs. Feedback welcome! You can keep up with the latest developments by checking news.md, which appears in the file list on the main page: https://github.com/GiovineItalia/Gadfly.jl

@robsmith11
Copy link
Author

Thanks. Theme(alphas=[0.5]) does work with the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants