Repository navigation
feat: plot_magnification_2d — image-plane magnification map with constant-mu contours - #690
Merged
Merged
Conversation
…u contours Plots log10 |mu| for any mass object (Galaxy, Galaxies, Tracer) with a percentile colour range, labelled contours at constant |mu| and an optional critical-curve overlay, as in LEGGOS II figure 4 (arc phase 8a, #689). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 2, 2026
Collaborator
Author
|
Downstream: PyAutoLabs/PyAutoLens#815 (aplt export), workspace PyAutoLabs/autolens_workspace#614. Merge order: this → PyAutoLens#815 → autolens_workspace#614. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #689 (cluster arc phase 8a). Adds a standalone image-plane magnification map. Until now the magnification was only a linear-scale panel in the fit subplots, where the divergences at the critical curves swamp the colour range.
plot_magnification_2dplots log10 |mu| for any mass object, with labelled contours of constant |mu| and the critical curves, in the style of LEGGOS II figure 4.API Changes
New public plot function
autogalaxy.plot.plot_magnification_2d(mass_obj, grid, ...); no existing behaviour changes.See full details below.
Test Plan
test_autogalaxyfull suite: 1469 passedcontour_levels=NoneFull API Changes (for automation & release notes)
Added
autogalaxy.plot.plot_magnification_2d(mass_obj, grid, contour_levels=(2, 5, 10, 20, 50, 100), include_critical_curves=True, tangential_critical_curves=None, radial_critical_curves=None, vmin=None, vmax=None, title=..., colormap="default", output_path=None, output_filename="magnification_2d", output_format=None, ax=None)— log10 |mu| image-plane map; colour range defaults to the 1st/99th percentiles; contour levels outside the map's range are skipped; draws intoaxwhen given (caller saves).Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code