colors has no field TwoSlopeNorm
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
先从 colors.TwoSlopeNorm 使用的 PyPlot colors 互操作开始,然后使用 pcolormesh 和 Colorbar 重现示例。检查导入的 matplotlib API 在 Julia 中是如何暴露的,并确定一种经过验证的居中 colorbar 的方法;该 issue 没有指定 repository 文件或测试,因此寻找相关 entry point 也是工作的一部分。
由索引模型根据 Issue 内容生成。
描述
Hi everyone,
It appears that "colors" function imported from matplotlib does not have "Normalize" or "TwoSlopeNorm" field.
Any idea about this?
using PyPlot
vmin, vmax = -1, 1
norm = colors.TwoSlopeNorm(vmin=vmin, vcenter=0., vmax=vmax)
ERROR: type #colors has no field TwoSlopeNorm
Anyways, my goal is to set the colorbar zero at center with symmetric color range.
pcolormesh(data, cmap="RdBu_r", norm = norm, shading="auto")
Colorbar()
- 主要语言
- Julia
- 星标
- 488
- 派生
- 90
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaPy/PyPlot.jl 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
-
julia PyPlot support missing data可能已有人在做 @deszoeke 于 666 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
查看 JuliaPy/PyPlot.jl 的全部 Issue
相似的 Issue
-
found-by-agent
难度 2/5 1-3 小时 新手友好度 68/100
exanauts/SparseDirectSolver.jl#92 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
lu_instance/qr_instance run a full factorization for FixedSizeArrays可能已有人在做 @devmotion 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
JuliaArrays/ArrayInterface.jl#510 ·
-
Segfault on x86_64 with AVX: over-aligned vector store可能已有人在做 @vchuravy 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
EnzymeAD/Enzyme.jl#3775 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复