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

Allow (Cycled(n), α) #1629

Open
Datseris opened this issue Jan 29, 2022 · 3 comments
Open

Allow (Cycled(n), α) #1629

Datseris opened this issue Jan 29, 2022 · 3 comments
Labels
colors color, colormap, colorrange, alpha, etc Cycle (Color) cycling enhancement Feature requests and enhancements Makie Backend independent issues (Makie core)

Comments

@Datseris
Copy link
Contributor

Given that Makie.jl does't have an alpha keyword, and color alpha must always be given in the form of a tuple color = (actual_color, alpha_value), then please allow (Cycled(n::Int), α::Real) to be passed as color. AT the moment it errors:

ERROR: LoadError: MethodError: no method matching color(::Cycled)
Closest candidates are:
  color(::ColorTypes.Color) at C:\Users\datse\.julia\packages\ColorTypes\6m8P7\src\traits.jl:108     
  color(::ColorTypes.TransparentColor{C, T, 2} where T) where C at C:\Users\datse\.julia\packages\ColorTypes\6m8P7\src\traits.jl:109
  color(::ColorTypes.TransparentColor{C, T, 3} where T) where C at C:\Users\datse\.julia\packages\ColorTypes\6m8P7\src\traits.jl:110
  ...
@Moelf
Copy link
Contributor

Moelf commented Nov 5, 2022

hitting this again

@korsbo
Copy link

korsbo commented Jan 18, 2023

This would make my life easier too.

@saumil-sh
Copy link

Are there any temporary solutions while the corresponding fix PR is still open?

@ffreyer ffreyer added enhancement Feature requests and enhancements Makie Backend independent issues (Makie core) colors color, colormap, colorrange, alpha, etc Cycle (Color) cycling labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
colors color, colormap, colorrange, alpha, etc Cycle (Color) cycling enhancement Feature requests and enhancements Makie Backend independent issues (Makie core)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants