Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

axis_scale='unit' centres on the mean, so skewed data sit off-centre

Đang mở
#287 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/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ệ
matplotlib, plotly, python
Lĩnh vực
data-visualization

Hướng nghiên cứu

The centring logic for axis_scale='unit' is the starting point, and the issue traces it to the mean rather than the midrange. Run tests/test_gh141_marker_line_smoothing.py and tests/test_plot_audit_b1.py::TestStaticLineDataFidelity first, since these five tests encode the current placement and will fail under the change. The issue defers this to 1.2 and it touches every 2-D and 3-D figure, so confirm scope with maintainers before editing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

With the default axis_scale='unit', each axis is centred on the data's mean, not its midrange. Skewed data therefore sit off-centre in the plot box.

Measured during the 1.1 release review (candidate c433b8f0):

  • hyp.plot(...) 2-D on a random-walk fixture (feature tour PLOT-basic-*): the trajectory fills the top two-thirds of the box and the bottom third is empty. Matplotlib and plotly behave the same.
  • weights_sample: every axis mean maps to about +0.13. Per axis, 72–76% of points sit above the centre, and 41% fall in the upper octant.
  • A lognormal array: means map to about −0.85, and 0.7% of points per axis sit above the centre. The data fill the lower corner.

Centring each axis on its midrange (min + max) / 2 would fill the box. It changes how every 2-D and 3-D figure looks. On a patched copy, 5 tests that encode the current placement fail: 3 in tests/test_gh141_marker_line_smoothing.py and 2 in tests/test_plot_audit_b1.py::TestStaticLineDataFidelity. Every gallery image, tutorial output and screenshot would need regenerating, so this is deferred from 1.1 to 1.2.

Ngôn ngữ chính
Python
Star
1.9k
Fork
164
Merge trung bình
2 giờ 46 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ContextLab/hypertools

Tất cả issue của ContextLab/hypertools

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.