`:bone` colormap seems wrong

Open
#132 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia

Research direction

No file or test is named. Locate the :bone colormap definition, compare its channel data with Matplotlib's colormap, and determine the intended mapping; done when the discrepancy and expected behavior are confirmed and the relevant definition or tests reflect that decision.

Written by the indexing model from the issue text.

Description

Here, the bone colormap is a straight grayscale white-to-black map, but Matplotlib gives it a blue tinge.

_bone_data = {'red':   ((0., 0., 0.),
                        (0.746032, 0.652778, 0.652778),
                        (1.0, 1.0, 1.0)),
              'green': ((0., 0., 0.),
                        (0.365079, 0.319444, 0.319444),
                        (0.746032, 0.777778, 0.777778),
                        (1.0, 1.0, 1.0)),
              'blue':  ((0., 0., 0.),
                        (0.365079, 0.444444, 0.444444),
                        (1.0, 1.0, 1.0))}

Is there a particular reason we sampled the colormaps here and did not translate Matplotlib's colormaps directly?

Dominant language
Julia
Stars
268
Forks
44
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaGraphics/ColorSchemes.jl

All issues in JuliaGraphics/ColorSchemes.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.