Skip to content

Commit 51e2ff9

Browse files
Jammy2211claude
authored andcommitted
Reduce critical curves and caustics overlay linewidth from 2 to 1
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>
1 parent aa418a5 commit 51e2ff9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

autoarray/plot/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def plot_array(
267267
if line is not None and len(line) > 0:
268268
line = np.asarray(line).reshape(-1, 2)
269269
color = line_colors[i] if (line_colors is not None and i < len(line_colors)) else None
270-
kw = {"linewidth": 2}
270+
kw = {"linewidth": 1}
271271
if color is not None:
272272
kw["color"] = color
273273
ax.plot(line[:, 1], line[:, 0], **kw)

autoarray/plot/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def plot_grid(
151151
if lines is not None:
152152
for line in lines:
153153
if line is not None and len(line) > 0:
154-
ax.plot(line[:, 1], line[:, 0], linewidth=2)
154+
ax.plot(line[:, 1], line[:, 0], linewidth=1)
155155

156156
# --- labels ----------------------------------------------------------------
157157
apply_labels(ax, title=title, xlabel=xlabel, ylabel=ylabel)

autoarray/plot/inversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def plot_inversion_reconstruction(
126126
if line is not None and len(line) > 0:
127127
line = np.asarray(line).reshape(-1, 2)
128128
color = line_colors[i] if (line_colors is not None and i < len(line_colors)) else None
129-
kw = {"linewidth": 2}
129+
kw = {"linewidth": 1}
130130
if color is not None:
131131
kw["color"] = color
132132
ax.plot(line[:, 1], line[:, 0], **kw)

0 commit comments

Comments
 (0)