Repository navigation
Expose the cluster family fit panels through autolens.plot - #890
Merged
Merged
Conversation
3 tasks done
Collaborator
Author
|
The companion walkthrough is open in autolens_workspace #687. Its script and notebook introduce the four panels one by one on Pandora’s |
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
Expose the four panels of the cluster family diagnostic through
autolens.plot. Authors can introduce a panel on its own, place it on a Matplotlib axis, or show the complete family figure that the point visualizer produces. The walkthrough uses the same image numbers across the sky map, contribution ranking, zoom and source plane.Refs #883.
API Changes
Four new plotting functions accept a selected
FitPointDatasetand an optional sequence of cluster fits. A new subplot function composes the panels and paginates families with more than six images. See full details below.Test Plan
point_6.Full API Changes (for automation & release notes)
Added
autolens.plot.plot_family_overview(fit, *, fits=None, image=None, ax=None, ...)draws the selected family in its sky context.autolens.plot.plot_family_contributions(fit, *, fits=None, ax=None, ...)ranks per-image contributions to the fitted statistic.autolens.plot.plot_family_image_detail(fit, image_number=None, *, fits=None, ax=None, ...)zooms to the printed image number in the fitted plane. Omitting the number shows all images on shared axes.autolens.plot.plot_family_source_plane(fit, *, fits=None, ax=None, ...)shows each labelled image back-traced to the source plane.autolens.plot.subplot_fit_family(fit, *, fits=None, image=None, single_panel=False, ..., title_prefix=None)creates the complete family figure. Each function supportsoutput_path,output_filenameandoutput_format.