Skip to content

App-friendly collected figures: theme / label / height hooks (#801) - #808

Merged
jepegit merged 3 commits into
masterfrom
cursor/801-app-friendly-collected-figures-a3b7
Jul 31, 2026
Merged

App-friendly collected figures: theme / label / height hooks (#801)#808
jepegit merged 3 commits into
masterfrom
cursor/801-app-friendly-collected-figures-a3b7

Conversation

@jepegit

@jepegit jepegit commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

Implements #801: first-class app chrome knobs on collected Plotly summary figures so GUIs/notebooks can drop figures in without a private restyle pass.

Public surface (Collection.plot / collected_plot / summary_plotter)

  • plotly_template= — override hardcoded plotly+{method}
  • layout_updates= — shallow fig.update_layout(**…) after collector styling
  • Pretty facet labels by default (clears variable=… strip; y_label_mapper= overrides)
  • height_per_panel= — clearer alias of sub_fig_min_height (summary default 300 px/panel)

Also applies y_ranges before label cleanup so #804 keeps working with pretty labels.

Docs / tests

  • Updated .issueflows/04-designs-and-guides/plotting-collected.md
  • New tests/test_collected_app_hooks.py; adjusted tests/test_collected_summary_axes.py
  • HISTORY.md Unreleased bullet

Closes #801

Test plan

  • MPLBACKEND=Agg uv run pytest tests/test_collected_app_hooks.py tests/test_collected_summary_axes.py -q (14 passed)
  • MPLBACKEND=Agg uv run pytest -m essential (635 passed locally)
  • CI Tier 1 on the PR
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 31, 2026 09:45
Track theme/label/height hooks for collected_plot under issue-flow
before implementation.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Expose plotly_template, layout_updates, and height_per_panel on the
collected summary path; default pretty facet labels so apps need not
restyle variable= strips. Keep y_ranges working with the new labels.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Record the collected-figure app chrome hooks in Unreleased and move the
issue-flow group to solved.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
@cursor
cursor Bot marked this pull request as ready for review July 31, 2026 09:59
@jepegit
jepegit enabled auto-merge (squash) July 31, 2026 09:59
@jepegit
jepegit merged commit afa818d into master Jul 31, 2026
8 checks passed
@jepegit
jepegit deleted the cursor/801-app-friendly-collected-figures-a3b7 branch July 31, 2026 10:01
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.

App-friendly collected figures: theme / label / height hook (or pass a FigureSpec)

2 participants