Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Request: (diverging) bipolar colormaps

未关闭
#60 3 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 😃:

Screen Shot 2021-03-10 at 11 28 41 am
主要语言
Julia
星标
266
派生
44
平均合并
7 小时 9 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaGraphics/ColorSchemes.jl 的其他 Issue

查看 JuliaGraphics/ColorSchemes.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。