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

Alpha modifier #3466

Closed
KronosTheLate opened this issue Dec 13, 2023 · 4 comments
Closed

Alpha modifier #3466

KronosTheLate opened this issue Dec 13, 2023 · 4 comments
Labels
enhancement Feature requests and enhancements

Comments

@KronosTheLate
Copy link
Contributor

I am often in the situation where I just want to add some alpha (transparency) to a plot, without making changes to colors. So I would like to use the default colours, or one specified with Cycled, but with some alpha != 1.. However, I have been unable to find a way to do this without manually specifying a color.

Perhaps it would be feasable to add field "alpha" to Cycled? It could then be Cycled(1, 0.5), analogus to (:black, 0.5).

@KronosTheLate KronosTheLate added the enhancement Feature requests and enhancements label Dec 13, 2023
@KronosTheLate
Copy link
Contributor Author

My band-aid fix ended up being color=Makie.wong_colors(alpha)[i], which worked well. But it uses a non-exported function, and it quite verbose, and so it feels hacky.

@jkrumbiegel
Copy link
Member

nowadays a lot of plot objects take an alpha keyword, does that help?

@KronosTheLate
Copy link
Contributor Author

Oh wow, yes! I did not realize that I could change it for the plot object like that, this is exactly what I was looking for.

I guess the fix then is just to document this in the docs, and possibly at the top. Definitively before the "problems with transparency" at least. I imagine that this will be the most ergonomic way for most poeople to quickly change the transparency.

@ffreyer
Copy link
Collaborator

ffreyer commented Aug 26, 2024

Closing as duplicate of #1629

@ffreyer ffreyer closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and enhancements
Projects
None yet
Development

No branches or pull requests

3 participants