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分
- マージ済み PR(30日)
- 47
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GenericMappingTools/gmt のほかの issue
-
Add support for SCM 9.0.0 to GMT対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GenericMappingTools/gmt#9316 · コメント 10 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GenericMappingTools/gmt#5767 · コメント 15 件 ·
メンテナーはふだん 1 日以内に返信
-
discussion
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
GenericMappingTools/gmt#9343 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
GenericMappingTools/gmt#9331 · リアクション 1 件 ·
メンテナーはふだん 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
-
難易度 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
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
CommonLoon102/restunts-bb11#101 ·
メンテナーはふだん 1 日以内に返信