From ab856fdb1c80a210b272b6d326e91ccc37f7c50f Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 3 Apr 2026 10:21:07 +0100 Subject: [PATCH] Replace plotter class imports with flat function imports 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) --- autolens/plot/__init__.py | 10 +++++++--- docs/api/plot.rst | 18 ++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/autolens/plot/__init__.py b/autolens/plot/__init__.py index c6ad6bc55..7bce7343e 100644 --- a/autolens/plot/__init__.py +++ b/autolens/plot/__init__.py @@ -1,6 +1,10 @@ -from autofit.non_linear.plot.nest_plotters import NestPlotter -from autofit.non_linear.plot.mcmc_plotters import MCMCPlotter -from autofit.non_linear.plot.mle_plotters import MLEPlotter +from autofit.non_linear.plot import ( + corner_cornerpy, + corner_anesthetic, + subplot_parameters, + log_likelihood_vs_iteration, + output_figure, +) # --------------------------------------------------------------------------- # Standalone plot helpers (autoarray) diff --git a/docs/api/plot.rst b/docs/api/plot.rst index c5a1fb358..4f4b2c759 100644 --- a/docs/api/plot.rst +++ b/docs/api/plot.rst @@ -83,22 +83,20 @@ Create figures and subplots showing quantities of standard **PyAutoLens** object subplot_sensitivity subplot_sensitivity_figures_of_merit -Non-linear Search Plotters [aplt] ---------------------------------- +Non-linear Search Plot Functions [aplt] +--------------------------------------- -Create figures and subplots of non-linear search specific visualization of every search algorithm supported -by **PyAutoGalaxy**. +Module-level functions for visualizing non-linear search results. -.. currentmodule:: autogalaxy.plot +.. currentmodule:: autofit.plot .. autosummary:: :toctree: _autosummary - :template: custom-class-template.rst - :recursive: - NestPlotter - MCMCPlotter - MLEPlotter + corner_cornerpy + corner_anesthetic + subplot_parameters + log_likelihood_vs_iteration Plot Customization [aplt] -------------------------