Increase default width of colour bar on all plots for clarity/readability
@sadielbartholomew đang làm issue này rồi.
Từ ngày 7/10/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The default colour bar width strikes me as too thin, in that it can be fairly to very difficult to see the colours inside it depending on how large you are viewing the plot ('very' when it is smaller) and therefore not particularly readable or clear. Morevoer, other visualisation tools I have seen in use in the field have thicker colour bars, in some cases much thicker such as Iris (see https://scitools-iris.readthedocs.io/en/stable/generated/gallery/index.html for the gallery), which suggests it is normal and preferred that way.
I asked a sample of colleagues whether they agreed the default width is too thin and they overwhelmingly (i.e. all surveyed) did. I included plots varying the width to try to gauge what the new default should be, and it seems like colorbar_thick should be increased to 0.035 from the current default of 0.015.
New default width judegement
I did a quick survey via NCAS Slack with a representative (two-line snippet from the docs example 1) with colorbar_thick varying from the default 0.015 then 0.02 to 0.04 in 0.01 increments (see below), and about half thought the 0.03 plot had the most suitable width, and about half the 0.04 width (including people who thought either of those two were best), hence I think inbetween is the best choice, 0.035.
Though I show a contour plot to illustrate, the width default increase will need to be implemented across all plots for universal benefit of the increase and for consistency.
Code and outputs to compare
I varied the colorbar_thick keyword from the default as follows:
>>> f=cf.read('cfplot_data/tas_A1.nc')[0]
>>> cfp.gopen(file="default-colorbar.png")
>>> cfp.con(f.subspace(time=15))
>>> cfp.gclose()
>>> cfp.gopen(file="new0.2-colorbar.png")
>>> cfp.con(f.subspace(time=15), colorbar_thick=0.02)
>>> cfp.gclose()
>>> cfp.gopen(file="new0.3-colorbar.png")
>>> cfp.con(f.subspace(time=15), colorbar_thick=0.03)
>>> cfp.gclose()
>>> cfp.gopen(file="new0.4-colorbar.png")
>>> cfp.con(f.subspace(time=15), colorbar_thick=0.04)
>>> cfp.gclose()
where the outputs are:
-
0.015, current default
-
0.02
-
0.03
-
0.04
- Ngôn ngữ chính
- Python
- Star
- 21
- Fork
- 11
- Merge trung bình
- 3 giờ 36 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 NCAS-CMS/cf-plot
-
Testing is far too fragileĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
-
testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
Add `AGENTS.md` fileĐang mởdocs enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Add animation hooks into cf-plotCó thể làm lại được @bnlawrence đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mởenhancement
-
Ugly nemo plotting issueCó thể đã có người làm @bnlawrence đã nhận 7 ngày trước. Đang mởbug v35plus
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của NCAS-CMS/cf-plot
Issue tương tự
-
bug needs-triage priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
yeongseon/azure-functions-logging-python#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation needs-triage priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
yeongseon/azure-functions-validation-python#546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PHP workflow streaming requests buffer the full SSE responseCó thể đã có người làm @Winoren đã nhận hôm nay. Đang mởreview: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
langgenius/dify#44270 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P4: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jeffknupp/association#523 ·
-
bug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DarkStarSystems/pcons#229 ·
Maintainer thường phản hồi trong vòng 1 ngày