Skip to content

Fix directional axis automargin anchors - #8090

Open
FistOfMight wants to merge 2 commits into
plotly:mainfrom
FistOfMight:fix-directional-automargin
Open

FistOfMight wants to merge 2 commits into
plotly:mainfrom
FistOfMight:fix-directional-automargin

Conversation

@FistOfMight

@FistOfMight FistOfMight commented Sep 29, 2026 •

Copy link
Copy Markdown

Fixes #8073.

Preserve axis anchor coordinates when filtering automargin directions.
Disabled margin sizes remain suppressed. This allows enabled margins
to grow correctly and prevents clipped axis labels.

Adds nine regression tests in the Jasmine axes suite. They cover
anchored and free axes, direction changes, and the reported clipping.

Validation:

  • All nine new regression tests pass.
  • The patched axes suite reports 409 passing tests and two failures.
  • Both failures also occur without the fix:
    can relayout insiderange and insiderange react to new data.
  • Lint, typecheck, syntax, and schema drift checks pass.

Before — without the fix
plotly-upstream
After — with the fix
plotly-patched

Preserve anchor coordinates when filtering margin directions so enabled right and top margins can grow. Add regression coverage for anchored and free axes, disabled margins, and clipped labels.

Refs plotly#8073
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.

[BUG]: Directional automargin clips right-side y-axis labels despite including "right"

2 participants