Request: (diverging) bipolar colormaps
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- julia
调研方向
未指定项目文件、测试或入口点。首先查看现有的 colormap API 以及链接的 matplotlib 和 endolith bipolar-colormap 参考,然后明确所需的中性色行为,以及 ColorSchemeTools.jl workaround 是否足够。对于所请求的发散 colormaps,达成一致的范围和实现计划后即视为完成。
由索引模型根据 Issue 内容生成。
描述
Request: (diverging) bipolar colormaps
I'd like to suggest the addition of diverging bipolar colormaps, such as those mentioned in https://github.com/matplotlib/matplotlib/issues/6033 that ended up being encoded in https://github.com/endolith/bipolar-colormap I think, for example. What do you think?
Copying images in the ReadMe of https://github.com/endolith/bipolar-colormap for issue reader's convenience below. 😄


Subrequest
I'd like to also suggest some more freedom on these, in particular remove the part which swaps colors depending on the neutral (central) color, so that one could make a cyan-darkblue-white-darkred-yellow colormap for example. FWIW, the swapping comes from the MATLAB bipolar colormap, on which https://github.com/endolith/bipolar-colormap is built, AFAICT. And from the MATLAB function's docs:
% The colormap goes from cyan-blue-neutral-red-yellow if neutral is < 0.5
% (the default) and from blue-cyan-neutral-yellow-red if neutral > 0.5.
Workaround?
Alternatively, maybe this is better achieved by hand using, e.g., ColorSchemeTools, but I'm sure by doing this I'm not including all the nice details and thinking that went into https://github.com/endolith/bipolar-colormap to make his colormaps, so maybe someone has some better ideas?
Some examples I tried with ColorSchemeTools.jl 😃:
- 主要语言
- Julia
- 星标
- 266
- 派生
- 44
- 平均合并
- 7 小时 9 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaGraphics/ColorSchemes.jl 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
JuliaGraphics/ColorSchemes.jl#158 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
JuliaGraphics/ColorSchemes.jl#153 · 2 条评论 ·
-
Releases未关闭
难度 4/5 3-5 天 新手友好度 15/100
JuliaGraphics/ColorSchemes.jl#145 · 8 条评论 ·
-
Colorcet Naming未关闭
难度 3/5 1-2 天 新手友好度 45/100
JuliaGraphics/ColorSchemes.jl#143 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
JuliaGraphics/ColorSchemes.jl#132 · 1 条评论 ·
查看 JuliaGraphics/ColorSchemes.jl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
`default_linear_interpolation` is called with its arguments swapped, so its opt-outs never apply未关闭
难度 2/5 1-3 小时 新手友好度 78/100
SciML/OrdinaryDiffEq.jl#4684 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
SciML/Evolutionary.jl#182 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
jmejia8/Metaheuristics.jl#130 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
exercism/julia-test-runner#164 · 1 条评论 ·