mcabbott / mcabbott/AxisKeys.jl

Axis colors policy

Open
#156 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
154
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/show.jl lines 45-57 and inspect how AxisKeys.colour chooses colors for axes. Determine whether the desired outcome is an all-different default or a supported way to override the rule without piracy. Done means the chosen color policy or override mechanism is documented and works for the issue's Julia example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.