Skip to content

Port cycles_plot to prepare→spec→render (#646)#649

Merged
jepegit merged 5 commits into
masterfrom
cursor/646-cycles-plot-prepare-4efd
Jul 23, 2026
Merged

Port cycles_plot to prepare→spec→render (#646)#649
jepegit merged 5 commits into
masterfrom
cursor/646-cycles-plot-prepare-4efd

Conversation

@jepegit

@jepegit jepegit commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #646 (epic #567 Stage 2): port cycles_plot onto prepare → spec → render.

Changes

  • cellpy/plotting/prepare/curves.py — curve frame + FigureSpec (kind="cycles")
  • Registry"cycles" family with entry_point="cycles_plot" (summary oracle stays filtered)
  • BackendsPlotlyBackend / MatplotlibBackend cycles render branch (ported private plotters)
  • Public API — thin cycles_plot: backend=; deprecate interactive= / xlim/ylimx_range/y_range
  • Teststests/test_cycles_prepare.py; oracle cases on backend=
  • CloseoutHISTORY.md Unreleased bullet; issue docs archived under .issueflows/03-solved-issues/

Test plan

  • MPLBACKEND=Agg uv run pytest tests/test_cycles_prepare.py tests/test_figure_specs.py tests/test_plotting_registry.py -q
  • MPLBACKEND=Agg uv run pytest -m essential --ignore=tests/test_arbin_variants_two_stage.py (562 passed)

Depends on

#639 (merged)

Open in Web Open in Cursor 

cursoragent and others added 5 commits July 23, 2026 07:36
Record Published #646#648 in epic567_plan.md and seed focus tracking
for Port cycles_plot to prepare→spec→render.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Capture the confirmed approach for Stage 2: prepare/curves, registry
family, backend cycles branch, and range/backend deprecations.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Add prepare/curves.py and a cycles PlotFamily, route public cycles_plot
through get_backend().render with kind=cycles branches in plotly/mpl,
and deprecate interactive=/xlim/ylim in favor of backend=/x_range/y_range.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Record the cycles_plot prepare→spec→render port under Unreleased and
move the issue group to 03-solved-issues with Done checked.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
@jepegit
jepegit marked this pull request as ready for review July 23, 2026 10:18
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jepegit
jepegit merged commit 0924e68 into master Jul 23, 2026
6 checks passed
@jepegit
jepegit deleted the cursor/646-cycles-plot-prepare-4efd branch July 23, 2026 10:18
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.

Port cycles_plot to prepare→spec→render

2 participants