From c1c55bf07e49a3d757245557e372b3727c1733ce Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Sat, 14 Nov 2026 20:19:15 +0000 Subject: [PATCH] docs: add every aplt export to docs/api/plot.rst Adds the plot functions that the plot namespace exports but the API reference omitted, including a new Dataset Subplots section for the dataset-level subplot and .fits helpers. Refs PyAutoLabs/PyAutoLens#862. Co-Authored-By: Claude Opus 5.5 --- docs/api/plot.rst | 118 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 117 insertions(+), 1 deletion(-) diff --git a/docs/api/plot.rst b/docs/api/plot.rst index e9b185a85..7dc3c774d 100644 --- a/docs/api/plot.rst +++ b/docs/api/plot.rst @@ -28,13 +28,29 @@ Choose the group that matches the object or result you want to inspect. The link Basic plots ~~~~~~~~~~~ -Display an array or a grid of coordinates. +Display an array or a grid of coordinates, or write an array to a ``.fits`` file. .. autosummary:: :toctree: _autosummary plot_array plot_grid + fits_array + +Dataset Subplots +~~~~~~~~~~~~~~~~ + +Inspect an imaging or interferometer dataset before fitting it, or write its components to ``.fits`` files. + +.. autosummary:: + :toctree: _autosummary + + subplot_imaging_dataset + subplot_imaging_dataset_intro + subplot_imaging_dataset_list + fits_imaging + subplot_interferometer_dirty_images + fits_interferometer Tracer and Galaxies subplots ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -62,6 +78,7 @@ Compare the image data and fitted model, and inspect residuals and other fit dia subplot_fit_imaging_log10_x1_plane subplot_fit_imaging_of_planes subplot_fit_imaging_tracer + subplot_fit_imaging_mappings subplot_fit_combined subplot_fit_combined_log10 @@ -77,6 +94,7 @@ Inspect visibilities, fits and reconstructed images. Dirty images are useful dia subplot_fit_interferometer subplot_fit_interferometer_real_space subplot_fit_interferometer_dirty_images + subplot_fit_interferometer_tracer subplot_fit_interferometer_combined Point Source subplots @@ -90,6 +108,7 @@ Inspect the observed point-source positions, fitted predictions and solver outpu subplot_fit_point subplot_point_dataset plot_point_solver + plot_image_with_points Subhalo Detection subplots ~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -114,6 +133,102 @@ Inspect sensitivity results and their figures of merit across the lens. subplot_sensitivity subplot_sensitivity_figures_of_merit +Galaxy and Light and Mass Profile subplots +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Inspect profile components, combined galaxy images, basis profiles and adapt images. These functions are implemented by **PyAutoGalaxy** and re-exported through ``aplt``. + +.. autosummary:: + :toctree: _autosummary + + subplot_galaxy_light_profiles + subplot_galaxy_mass_profiles + subplot_basis_image + subplot_galaxies + subplot_galaxy_images + subplot_adapt_images + +Galaxy Fit subplots +~~~~~~~~~~~~~~~~~~~ + +Inspect a fit one galaxy at a time, or the real-space and dirty-image views of an interferometer fit. These are the **PyAutoGalaxy** fit subplots, re-exported through ``aplt``. + +.. autosummary:: + :toctree: _autosummary + + subplot_fit_imaging_of_galaxy + subplot_fit_dirty_images + subplot_fit_real_space + +Ellipse Fit subplots +~~~~~~~~~~~~~~~~~~~~ + +Inspect fitted isophotes and the errors associated with the ellipse fits. + +.. autosummary:: + :toctree: _autosummary + + subplot_fit_ellipse + subplot_ellipse_errors + +Magnification maps +~~~~~~~~~~~~~~~~~~ + +Map the lensing magnification in the image plane and source plane, and its uncertainty over a set of posterior draws. + +.. autosummary:: + :toctree: _autosummary + + plot_magnification_2d + plot_magnification_source_plane + plot_magnification_source_plane_grid + plot_magnification_uncertainty_2d + magnification_fractional_error_2d_from + +Cluster plots +~~~~~~~~~~~~~ + +Inspect a cluster dataset, its multiple-image positions and the critical curves and caustics of the lens model. + +.. autosummary:: + :toctree: _autosummary + + subplot_cluster_dataset + plot_positions_overlay + plot_image_group_zooms + plot_critical_curves + plot_caustics + +Weak Lensing plots +~~~~~~~~~~~~~~~~~~ + +Inspect a weak-lensing shear dataset, its fit, the shear profile and the convergence map. + +.. autosummary:: + :toctree: _autosummary + + subplot_weak_dataset + plot_shear_yx_2d + plot_ellipticities + plot_phis + plot_noise_map + subplot_fit_weak + plot_data_vs_model + plot_residuals + plot_chi_squared_map + plot_shear_profile + plot_convergence_map + +Twin comparisons +~~~~~~~~~~~~~~~~ + +Compare a fitted lens (the parent) with a simulated twin made from it (``al.twins.compare``): images, residuals, convergence, enclosed mass and critical curves. + +.. autosummary:: + :toctree: _autosummary + + subplot_twin_comparison + .. _non-linear-search-plot-functions-aplt: Search results @@ -130,6 +245,7 @@ These functions visualize samples and search progress. They are implemented by * corner_anesthetic subplot_parameters log_likelihood_vs_iteration + output_figure .. _plot-customization-aplt: