Skip to content

Respect chart width for positive constant data - #137

Open
GreedyC wants to merge 1 commit into
mkaz:mainfrom
GreedyC:codex/normalize-constant-values
Open

GreedyC wants to merge 1 commit into
mkaz:mainfrom
GreedyC:codex/normalize-constant-values

Conversation

@GreedyC

@GreedyC GreedyC commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Positive constant data bypasses normalization, so a single value of 1000 draws 1000 ticks even with width=10. Only skip scaling when the maximum is zero; other constant data now follows the same width calculation as varying data.

Closes #136.

Four flat/nested constant-value regressions fail on the original code and pass with the fix. All 97 tests and Ruff checks on the changed files pass. Zero-value cases remain covered.

Prepared with Codex assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constant positive values bypass width normalization

1 participant