Skip to content

Replace plotter class imports with flat function imports#413

Merged
Jammy2211 merged 1 commit intomainfrom
feature/plot_refactor
Apr 3, 2026
Merged

Replace plotter class imports with flat function imports#413
Jammy2211 merged 1 commit intomainfrom
feature/plot_refactor

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Replace imports of removed NestPlotter/MCMCPlotter/MLEPlotter classes in autolens/plot/__init__.py with the new module-level functions from PyAutoFit. Update API docs accordingly.

API Changes

The autolens.plot namespace no longer re-exports NestPlotter, MCMCPlotter, MLEPlotter. Instead it exports corner_cornerpy, corner_anesthetic, subplot_parameters, log_likelihood_vs_iteration, and output_figure.
See full details below.

Test Plan

  • pytest test_autolens/ -x — 254 passed
📋 Full API Changes (for automation & release notes)

Removed

  • autolens.plot.NestPlotter — was re-exported from autofit.non_linear.plot.nest_plotters
  • autolens.plot.MCMCPlotter — was re-exported from autofit.non_linear.plot.mcmc_plotters
  • autolens.plot.MLEPlotter — was re-exported from autofit.non_linear.plot.mle_plotters

Added

  • autolens.plot.corner_cornerpy — re-exported from autofit.non_linear.plot
  • autolens.plot.corner_anesthetic — re-exported from autofit.non_linear.plot
  • autolens.plot.subplot_parameters — re-exported from autofit.non_linear.plot
  • autolens.plot.log_likelihood_vs_iteration — re-exported from autofit.non_linear.plot
  • autolens.plot.output_figure — re-exported from autofit.non_linear.plot

Migration

  • Before: import autolens.plot as aplt; plotter = aplt.NestPlotter(samples=s); plotter.corner_anesthetic()
  • After: import autolens.plot as aplt; aplt.corner_anesthetic(samples=s)

🤖 Generated with Claude Code

Remove NestPlotter/MCMCPlotter/MLEPlotter imports from plot __init__,
replace with corner_cornerpy, corner_anesthetic, subplot_parameters,
log_likelihood_vs_iteration function imports. Update API docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit e69cc90 into main Apr 3, 2026
4 of 8 checks passed
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