Skip to content

Fix subplot_fit_quick styling: arcsecond axes, source plane, code reuse - #550

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/quick-subplot-styling
May 27, 2026
Merged

Fix subplot_fit_quick styling: arcsecond axes, source plane, code reuse#550
Jammy2211 merged 1 commit into
mainfrom
feature/quick-subplot-styling

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Fixes the subplot_fit_quick rendering for both imaging and interferometer:

  • Arcsecond axes — wraps pre-computed numpy arrays as Array2D.no_mask(pixel_scales=..., origin=...) so plot_array shows arcsecond coordinates instead of pixel indices
  • Source plane panel — reuses _plot_source_plane (was missing/broken, now shows parametric or pixelized source correctly)
  • Consistent styling — uses plot_array / plot_yx / subplots / tight_layout from the standard pipeline, matching axis labels, tick sizes, colorbars, and layout of the full subplot_fit
  • Removed custom helpers_quick_imshow, _to_native_np, _quick_imshow_interf, _to_native_np_interf are gone; replaced by _slim_to_array2d which wraps numpy arrays with geometry for plot_array
  • Net -233/+88 lines — simpler code through reuse

API Changes

None — same functions, same output filenames.

Test Plan

  • Manual: check fit_quick.png shows arcsecond axes, source plane panel, consistent styling
  • pytest test_autolens/

🤖 Generated with Claude Code

Rewrites both imaging and interferometer subplot_fit_quick to:

- Use plot_array / plot_yx / _plot_source_plane from the standard
  pipeline for consistent axis labels, tick sizes, and colorbars
- Wrap pre-computed numpy arrays as Array2D.no_mask so plot_array
  shows arcsecond coordinates (was showing pixel indices)
- Reuse _plot_source_plane for the source panel (was missing for
  imaging, using raw imshow for interferometer)
- Remove the custom _quick_imshow / _to_native_np helpers that
  bypassed the plotting pipeline entirely

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 27, 2026
@Jammy2211
Jammy2211 merged commit a6e21b1 into main May 27, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/quick-subplot-styling branch May 27, 2026 18:20
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
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