Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#287 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
matplotlib, plotly, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1.9k
Fork
164
Merge medio
2h 46m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ContextLab/hypertools

Tutte le issue di ContextLab/hypertools

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.