Rename PlotterInterface -> Plotter; extract subplot functions; update docs#307
Merged
Rename PlotterInterface -> Plotter; extract subplot functions; update docs#307
Conversation
…cstrings; update docs - Rename plotter_interface.py -> plotter.py and PlotterInterface* -> Plotter* across all dataset types (imaging, interferometer, quantity, ellipse) - Extract inline matplotlib subplot code into standalone functions in autoarray and autogalaxy; replace all callers with function calls - Add numpy-style docstrings to all Plotter methods and standalone plot functions - Update docs/api/plot.rst to list new standalone aplt functions instead of old classes - 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 - Fix interferometer subplot_dataset filename (was subplot_dirty_images) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Makes subplot_imaging, subplot_imaging_dataset_list, and subplot_interferometer_dirty_images accessible via import autogalaxy.plot as aplt. 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, quantity, and ellipse dataset typessubplot_imaging,subplot_imaging_dataset_list) and autogalaxy (subplot_fit_imaging_list)Plottermethods and module-levelfits_to_fitsfunctionsautogalaxy.plot.__init__docs/api/plot.rstto list new standaloneapltfunctions instead of old class-based plottersdocs/overview/overview_1_start_here.rstto use newaplt.plot_array/aplt.plot_gridAPIsubplot_datasetfilename (was incorrectlysubplot_dirty_images)test_plotter_interface*→test_plotter*to match source renameTest plan
pytest test_autogalaxy/analysis/test_plotter.pypytest test_autogalaxy/imaging/model/test_plotter_imaging.pypytest test_autogalaxy/interferometer/model/test_plotter_interferometer.pypytest test_autogalaxy/quantity/model/test_plotter_quantity.py🤖 Generated with Claude Code