histogram: the min/max setting in -T is ignored when -R is set
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- c
调研方向
Start by tracing how gmt histogram handles -T bin boundaries together with -R range settings; the issue provides reproducible commands using @v3206_06.txt. Check the behavior both for separate histogram commands and within gmt subplot. Done when the specified -T min/max determine the bins despite -R, and the second histogram's range history does not unexpectedly affect the first or later plot.
由索引模型根据 Issue 内容生成。
描述
The issue was initially reported in https://github.com/GenericMappingTools/pygmt/pull/4988#issuecomment-7068207682 by @yvonnefroehlich.
As per the documentation of -T:
Make evenly spaced array of bin boundaries from min to max by inc.
So, I expect the following commands should produce the same bins but with different ranges:
gmt begin hist png
gmt histogram @v3206_06.txt -T-5000/1000/250 -W1p -Baf -Xw+1c
gmt histogram @v3206_06.txt -T-5000/1000/250 -R-7000/1000/0/0 -W1p -Baf -Xw+1c
gmt end show
but the output is:
it seems the min/max settings in -T is override by min/max in -R.
Another possible issue/limitation is, when two histograms are drawn, it seems the -R history of the first histogram will affect the 2nd histogram:
This can be verified by switching the order of the two histogram commands in the above script. It produces:
The issue doesn't exist if drawing the two histograms using gmt subplot:
gmt begin hist png
gmt subplot begin 1x2 -Fs10c/10c
gmt histogram @v3206_06.txt -T-5000/1000/250 -W1p -Baf -c
gmt histogram @v3206_06.txt -T-5000/1000/250 -R-7000/1000/0/0 -W1p -Baf -c
gmt subplot end
gmt end show
The output is:
The first issue should be easy to solve with help from Claude, but the 2nd issue is likely more difficult.
- 主要语言
- C
- 星标
- 997
- 派生
- 420
- 平均合并
- 13 小时 27 分钟
- 30 天内合并 PR
- 47
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GenericMappingTools/gmt 的其他 Issue
-
Add support for SCM 9.0.0 to GMT可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
GenericMappingTools/gmt#9316 · 10 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 62/100
GenericMappingTools/gmt#5767 · 15 条评论 ·
维护者通常 1 天内回复
-
discussion
难度 5/5 一周以上 新手友好度 35/100
GenericMappingTools/gmt#9343 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 45/100
GenericMappingTools/gmt#9331 · 1 个 reaction ·
维护者通常 1 天内回复
-
Windows CI: a 1-row netCDF grid is read back with a collapsed y range (test/grdtrend/trend_xy_plot.sh)可能已有人在做 @Esteban82 于 43 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 15/100
GenericMappingTools/gmt#9261 · 4 条评论 ·
维护者通常 1 天内回复
查看 GenericMappingTools/gmt 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 2/5 1-3 小时 新手友好度 77/100
-
难度 2/5 1-3 小时 新手友好度 64/100
libsndfile/libsndfile#1239 ·
-
难度 2/5 1-3 小时 新手友好度 65/100