Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#287 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
matplotlib, plotly, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
1.9k
フォーク
164
平均マージ
2時間 46分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ContextLab/hypertools のほかの issue

ContextLab/hypertools の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。