Skip to content

Reduce critical curves and caustics overlay linewidth from 2 to 1 - #319

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/critical-curves-linewidth
May 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/critical-curves-linewidth

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Reduces the matplotlib linewidth used for the lines= overlay in plot_array, plot_inversion_reconstruction, and plot_grid from 2 to 1. In current usage these overlays are exclusively critical curves and caustics, which users reported were too thick to inspect underlying lens-model results (convergence, potential, deflections, and source-plane reconstructions).

API Changes

None — internal styling tweak only. No public symbols added, removed, renamed, or re-signatured; the lines= parameter and all call sites in PyAutoGalaxy / PyAutoLens are unchanged. Behaviour change is limited to rendered line thickness.
See full details below.

Test Plan

  • python -m pytest test_autoarray/ -x passes
  • Run an autolens workspace script that produces critical-curve overlays (e.g. PYAUTO_OUTPUT_MODE=1 python autolens_workspace/scripts/imaging/modeling/start_here.py) and visually confirm the white tangential and yellow radial overlays are noticeably thinner without otherwise changing the figures.
Full API Changes (for automation & release notes)

Removed

  • None

Added

  • None

Renamed

  • None

Changed Signature

  • None

Changed Behaviour

  • autoarray.plot.plot_array(..., lines=...) — overlay lines now render at linewidth=1 (was 2).
  • autoarray.plot.plot_inversion_reconstruction(..., lines=...) — overlay lines now render at linewidth=1 (was 2).
  • autoarray.plot.plot_grid(..., lines=...) — overlay lines now render at linewidth=1 (was 2).

Migration

  • None required.

🤖 Generated with Claude Code

Users reported the white tangential and yellow radial critical curves /
caustics drawn over convergence, potential, deflection, and source-plane
panels were too thick to inspect underlying lens-model results. Reduces
the hardcoded matplotlib linewidth in the three `lines=` overlay sites
(autoarray/plot/{array.py,inversion.py,grid.py}) from 2 to 1.

The `lines=` parameter is currently consumed exclusively by critical
curves and caustics across PyAutoGalaxy and PyAutoLens, so the change
targets exactly the reported overlays with no incidental side-effects.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 16, 2026
@Jammy2211
Jammy2211 merged commit 41465a3 into main May 16, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/critical-curves-linewidth branch May 16, 2026 12:45
@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