Skip to content

Rename PlotterInterface -> Plotter; fix _to_lines; update docs#403

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

Rename PlotterInterface -> Plotter; fix _to_lines; update docs#403
Jammy2211 merged 2 commits intomainfrom
claude/plotter-refactor-autolens

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Renames plotter_interface.pyplotter.py and all PlotterInterface* classes → Plotter* across imaging, interferometer, and point dataset types
  • Fixes _to_lines(tan, rad) calls in tracer_plots.py, fit_imaging_plots.py, and sensitivity_plots.py: numpy_lines() takes one argument, so tangential and radial curves are now concatenated before passing
  • Adds docstrings to all Plotter methods
  • Re-exports all autoarray dataset subplot functions and autogalaxy galaxy/profile/fit subplot functions from autolens.plot.__init__
  • Updates docs/api/plot.rst to list new standalone aplt functions with correct currentmodule: autolens.plot
  • Updates docs/overview/overview_1_start_here.rst to use new aplt.plot_array / aplt.plot_grid API
  • Renames test_plotter_interface*test_plotter* to match source rename

Test plan

  • pytest test_autolens/analysis/test_plotter.py
  • pytest test_autolens/imaging/model/test_plotter_imaging.py
  • pytest test_autolens/interferometer/model/test_plotter_interferometer.py
  • pytest test_autolens/point/model/test_plotter_point.py
  • pytest test_autolens/lens/plot/test_tracer_plots.py
  • Full test suite passes

🤖 Generated with Claude Code

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