Skip to content

Update plot API to flat functions (PyAutoFit PR #1174)#19

Merged
Jammy2211 merged 2 commits intomainfrom
feature/plot-api-update
Apr 5, 2026
Merged

Update plot API to flat functions (PyAutoFit PR #1174)#19
Jammy2211 merged 2 commits intomainfrom
feature/plot-api-update

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Replace class-based plotter API (NestPlotter, MCMCPlotter, MLEPlotter) with module-level functions (aplt.corner_cornerpy(), aplt.corner_anesthetic()), matching the PyAutoFit PR PyAutoLabs/PyAutoFit#1174 API changes. Update all docstrings to reference the new function-based interface.

Scripts Changed

  • scripts/cookbooks/samples.py — replaced MCMCPlotter instantiation with aplt.corner_cornerpy()
  • scripts/cookbooks/search.py — replaced MCMCPlotter instantiation with aplt.corner_cornerpy(), updated docstring
  • scripts/overview/overview_1_the_basics.py — replaced NestPlotter instantiation with aplt.corner_anesthetic()
  • scripts/howtofit/chapter_1_introduction/tutorial_5_results_and_samples.py — replaced MCMCPlotter with aplt.corner_cornerpy(), updated docstring
  • scripts/howtofit/chapter_3_graphical_models/tutorial_1_individual_models.py — replaced NestPlotter with aplt.corner_cornerpy()
  • scripts/howtofit/chapter_3_graphical_models/tutorial_3_graphical_benefits.py — replaced NestPlotter with aplt.corner_cornerpy()
  • scripts/plot/DynestyPlotter.py — updated docstrings (code already used new API)
  • scripts/plot/EmceePlotter.py — updated docstrings (code already used new API)
  • scripts/plot/NautilusPlotter.py — updated docstrings (code already used new API)
  • scripts/plot/UltraNestPlotter.py — updated docstrings (code already used new API)
  • scripts/plot/ZeusPlotter.py — updated docstrings (code already used new API)
  • scripts/plot/PySwarmsPlotter.py — updated docstrings (code already used new API)

Test Plan

  • Smoke tests pass for autofit_workspace (7/7)
  • No references to old plotter API remain (grep confirms zero hits for aplt.NestPlotter, aplt.MCMCPlotter, aplt.MLEPlotter)

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits April 5, 2026 15:20
Replace NestPlotter, MCMCPlotter, MLEPlotter class instantiation with
module-level aplt.corner_cornerpy() and aplt.corner_anesthetic() calls,
matching the PyAutoFit PR #1174 API changes. Update docstrings across
all plot scripts to reference the new function-based interface.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 5596a5b into main Apr 5, 2026
Jammy2211 added a commit that referenced this pull request Apr 9, 2026
Update plot API to flat functions (PyAutoFit PR #1174)
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.

1 participant