histogram: the min/max setting in -T is ignored when -R is set
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- data-visualization
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 997
- Fork
- 420
- Merge trung bình
- 13 giờ 27 phút
- Pull request đã merge (30 ngày)
- 47
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GenericMappingTools/gmt
-
Add support for SCM 9.0.0 to GMTCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
GenericMappingTools/gmt#9316 · 10 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
GenericMappingTools/gmt#5767 · 15 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
GenericMappingTools/gmt#9343 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
GenericMappingTools/gmt#9331 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows CI: a 1-row netCDF grid is read back with a collapsed y range (test/grdtrend/trend_xy_plot.sh)Có thể đã có người làm @Esteban82 đã nhận 43 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
GenericMappingTools/gmt#9261 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GenericMappingTools/gmt
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
libsndfile/libsndfile#1239 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
CommonLoon102/restunts-bb11#101 ·
Maintainer thường phản hồi trong vòng 1 ngày