Rename PlotterInterface -> Plotter; fix _to_lines; update docs#403
Merged
Rename PlotterInterface -> Plotter; fix _to_lines; update docs#403
Conversation
- Rename plotter_interface.py -> plotter.py and PlotterInterface* -> Plotter* across all dataset types (imaging, interferometer, point, quantity) - Fix _to_lines(tan, rad) calls in tracer_plots, fit_imaging_plots, sensitivity_plots: numpy_lines() takes one argument, so concatenate tangential+radial before passing - Add docstrings to all Plotter methods in imaging, interferometer, and point plotters - Update docs/api/plot.rst to list new aplt standalone functions with correct currentmodule (autolens.plot, not autogalaxy.plot) - Update docs/overview/overview_1_start_here.rst to use new aplt.plot_array / plot_grid API - Rename test_plotter_interface* -> test_plotter* to match source rename Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Makes all AG galaxy/profile/fit subplot functions and autoarray dataset subplot functions accessible via import autolens.plot as aplt, without requiring users to import from lower-level packages directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plotter_interface.py→plotter.pyand allPlotterInterface*classes →Plotter*across imaging, interferometer, and point dataset types_to_lines(tan, rad)calls intracer_plots.py,fit_imaging_plots.py, andsensitivity_plots.py:numpy_lines()takes one argument, so tangential and radial curves are now concatenated before passingPlottermethodsautolens.plot.__init__docs/api/plot.rstto list new standaloneapltfunctions with correctcurrentmodule: autolens.plotdocs/overview/overview_1_start_here.rstto use newaplt.plot_array/aplt.plot_gridAPItest_plotter_interface*→test_plotter*to match source renameTest plan
pytest test_autolens/analysis/test_plotter.pypytest test_autolens/imaging/model/test_plotter_imaging.pypytest test_autolens/interferometer/model/test_plotter_interferometer.pypytest test_autolens/point/model/test_plotter_point.pypytest test_autolens/lens/plot/test_tracer_plots.py🤖 Generated with Claude Code