LabKit MATLAB Workbench

history

T-Test plots gain truthful limits and an explicit view reset

id: LK-20260720-ttest-plot-viewport-and-density
date: 2026-07-20
sequence: 143
type: feat
compatibility: compatible
component: `labkit_TTestWizard_app` | `1.1.1 -> 1.2.0`
scope: Statistics Apps
scope: App Framework

Context

T-Test Wizard used the absolute data magnitude as a minimum padding span, so box plots with a narrow nonzero range could receive excessive empty space. Bar-chart zoom could move the zero baseline away from the y-axis edge, and the App had no visible action for returning to the fitted view. Two short status summaries also occupied detail-panel height.

Decision and rationale

Fit limits from the graphics that carry statistical meaning: distribution or bar extents, optional observations, standard-deviation error bars, and significance brackets. Keep zero at the appropriate edge for one-sided bar data because truncated bar baselines distort magnitude; mixed-sign data must instead show zero inside the axis. Keep box plots distribution-fitted.

Expose an App-owned reset action backed by the framework's general transient plot-view revision. Use the framework's line-count hint for short summaries rather than adding T-Test-specific pixel sizes.

Changes

User and data impact

Project schema 2, completed comparison values, CSV outputs, formulas, and test choices are unchanged. T-Test Wizard 1.2.0 requires labkit.app 1.2 or later for compact summaries and one-shot plot viewport revisions. Existing projects open without migration.

Compatibility and migration

No additional migration applies beyond the compatibility information in the preceding impact section.

Validation

Evidence

The validation details above are the supporting evidence for this record.

Known limitations and follow-up

Developer-led visual review should compare box, bar, error-bar, and bracket appearance at typical desktop sizes and with real scientific label lengths.