feat: add title_prefix support to subplot_imaging_dataset#260
Merged
feat: add title_prefix support to subplot_imaging_dataset#260
Conversation
Adds `title_prefix: str = None` to both `subplot_imaging_dataset` and `subplot_imaging_dataset_list`. The prefix is applied (with an automatic trailing space) to all data-content panel titles — Data, Data (log10), Noise-Map, Point Spread Function, PSF (log10), Signal-To-Noise Map — but intentionally NOT to the Over Sample Size panels, which describe grid configuration rather than observed data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All panel titles in subplot_of_mapper now receive the title_prefix (with auto-space). Also renames: "Noise-Map (Unzoomed)" -> "Noise-Map (No Zoom)" "Regularization Weights (Unzoomed)" -> "Regularization (No Zoom)" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Without this, subplot panels always used the standalone title font size (24) instead of the subplot size (20), making rectangular pixelization titles visually inconsistent with all other subplot panels. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Adds
title_prefix: str = Nonetosubplot_imaging_datasetandsubplot_imaging_dataset_listso that the prefix set on aPlotter(e.g."VIS"for Euclid VIS imaging) is applied to all data-content panel titles. The prefix gets an automatic trailing space so callers never need to pad it manually.API Changes
subplot_imaging_dataset(...)gains a new optionaltitle_prefix: str = Nonekwarg. When set, all data panels (Data, Data (log10), Noise-Map, Point Spread Function, PSF (log10), Signal-To-Noise Map) are titled with"{prefix} {panel}". Over Sample Size panels are intentionally excluded — they describe grid configuration, not observed data.subplot_imaging_dataset_list(...)gains the sametitle_prefixkwarg applied uniformly to all row panels.See full details below.
Test Plan
Full API Changes (for automation & release notes)
Added
subplot_imaging_dataset(..., title_prefix: str = None)— prefix applied to Data/Noise/PSF/SNR panels; Over Sample Size panels excludedsubplot_imaging_dataset_list(..., title_prefix: str = None)— prefix applied to Data/Noise Map/Signal-To-Noise Map panelsMigration
title_prefix="VIS"and all applicable panels are prefixed "VIS Data", "VIS Noise-Map", etc.🤖 Generated with Claude Code