-
Notifications
You must be signed in to change notification settings - Fork 47
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
Document how to set alpha values. #225
Comments
|
Here is a minimal example that fails to make the scatter points transparent for using AlgebraOfGraphics: Scatter, data, draw, mapping, visual
import CairoMakie, ElectronDisplay
df = [(; x, y = sin(x)) for x in (-π):0.1:π]
data(df) * mapping(:x, :y) * visual(Scatter; alpha = 0.5) |> draw Package versions:
|
Ah, thanks for reporting that, this is definitely a bug. I think AoG has trouble applying alpha if no explicit color is passed, either via I suspect it's difficult to fix this in general from AoG, it probably needs MakieOrg/Makie.jl#84 for a cleaner solution. |
Thank you for the quick response. Setting the color explicitly does the trick. Should I close this issue since it will essentially work once the alpha channel is supported in Makie? |
I think it's best to keep it open (even if it's not really actionable) as a reminder to update things on this end (remove current partial implementation) once Makie has alpha transparency support. |
Bump. As this issue has been open for awhile and it is unclear for how long it will stay open, could we add a short note about that in the documentation? So even if the issue isn't fixed, new users won't struggle to find the trick? |
|
Yeah in principle I would expect |
Ah no it does get passed along, |
I think this issue can be closed as it's not a special AoG attribute anymore and the remaining fixes are on Makie's side |
Thank you for this awesome package! I'm a huge fan of grammar of graphics and I'm excited to see a native Julia implementation of this paradigm.
The tutorial and the philosophy pages of the documentation suggest that one can set the transparency of a layer via the
alpha
keyword ofvisualize
, i.e. something likevisualize(Scatter; alpha = 0.5)
. However, that does not seem to work (anymore?). It is surprisingly hard to figure out what would be the right thing to do to achieve the result.It would be great if the documentation could be updated in this regard or if the documentation could include a pointer to the relevant information about accepted keyword arguments of
visualize
(probably pointing to the Makie.jl docs?).The text was updated successfully, but these errors were encountered: