mcabbott / AxisKeys.jl

🎹
MIT License
148 stars 27 forks source link

Axis colors policy #156

Open jariji opened 5 months ago

jariji commented 5 months ago

https://github.com/mcabbott/AxisKeys.jl/blob/c16d0fc7bde7600431e519f917d2d7473cb01fc9/src/show.jl#L45-L57

I like to have all-different axis colors so I want to override the color rule, but that is piracy which I prefer to avoid. Is there a way to either provide all-different colors by default or somehow let me override the default behavior without piracy?

julia> AxisKeys.colour(::AbstractArray, i::Int) = let cs = [:cyan, :yellow, :magenta, :blue]
           cs[mod1(i,length(cs))] 
       end