Skip to content

Rename PlotterInterface -> Plotter; extract subplot functions; update docs#307

Merged
Jammy2211 merged 2 commits intomainfrom
claude/plotter-refactor-autogalaxy
Mar 25, 2026
Merged

Rename PlotterInterface -> Plotter; extract subplot functions; update docs#307
Jammy2211 merged 2 commits intomainfrom
claude/plotter-refactor-autogalaxy

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Renames plotter_interface.pyplotter.py and all PlotterInterface* classes → Plotter* across imaging, interferometer, quantity, and ellipse dataset types
  • Extracts inline matplotlib subplot code from plotter methods into standalone functions in autoarray (subplot_imaging, subplot_imaging_dataset_list) and autogalaxy (subplot_fit_imaging_list)
  • Adds numpy-style docstrings to all Plotter methods and module-level fits_to_fits functions
  • Re-exports autoarray dataset subplot functions from autogalaxy.plot.__init__
  • Updates docs/api/plot.rst to list new standalone aplt functions instead of old class-based plotters
  • Updates docs/overview/overview_1_start_here.rst to use new aplt.plot_array / aplt.plot_grid API
  • Fixes interferometer subplot_dataset filename (was incorrectly subplot_dirty_images)
  • Renames test_plotter_interface*test_plotter* to match source rename

Test plan

  • pytest test_autogalaxy/analysis/test_plotter.py
  • pytest test_autogalaxy/imaging/model/test_plotter_imaging.py
  • pytest test_autogalaxy/interferometer/model/test_plotter_interferometer.py
  • pytest test_autogalaxy/quantity/model/test_plotter_quantity.py
  • Full test suite passes

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits March 25, 2026 10:03
…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>
@Jammy2211 Jammy2211 merged commit e750c71 into main Mar 25, 2026
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the claude/plotter-refactor-autogalaxy branch March 25, 2026 10:09
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