Skip to content

refactor(figure)!: remove the public axes parameter - #110

Merged
jvdd merged 1 commit into
mainfrom
refactor/remove-public-axes
Sep 28, 2026
Merged

jvdd merged 1 commit into
mainfrom
refactor/remove-public-axes

Conversation

@jvdd

@jvdd jvdd commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #84.

Change

  • Figure.add_line, add_histogram, add_boxplot, add_bar and add_histogram2d no longer take axes=. The parameter and its docstring entries are removed.
  • The trace classes keep their internal ("x", "y") default, and TraceSpec.axes stays for engine routing.
  • Architecture.md: the add_histogram2d signature line drops axes.

Impact

  • Breaking for callers that passed axes=. No test, example, doc or skill file did.
  • A trace on another anchor ignored zoom, because the renderer draws every trace on xaxis and the engine reads update_range by role. This PR removes the public path to that state. It also removes the public path to Axis handling gaps found while reviewing linked axes #81 item 2 (axes=("y", "x")).
  • Not changed, as the issue says: the engine lookups (_trace_update_range, the cube backend_data lookup). A hand-edited or decoded spec can still carry other anchors.
  • Secondary-axis support, and the return of a public option for it, is tracked in Support secondary axes on cartesian traces #120.

Tests

  • pytest tests flexviz_polars/tests: 2390 passed, 2 skipped.
  • No browser run: no adapter or JS file changed.

@codspeed

codspeed Bot commented Sep 27, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing refactor/remove-public-axes (cdb70bc) with main (dbc1e0f)

Open in CodSpeed

@jvdd
jvdd merged commit 352d6e1 into main Sep 28, 2026
18 checks passed
@jvdd
jvdd deleted the refactor/remove-public-axes branch September 28, 2026 08:58
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.

A trace on an axis other than x or y ignores zoom; remove the public axes= parameter

1 participant