Skip to content

feat: add title_prefix support to subplot_imaging_dataset#260

Merged
Jammy2211 merged 4 commits intomainfrom
feature/title-prefix-subplots
Apr 7, 2026
Merged

feat: add title_prefix support to subplot_imaging_dataset#260
Jammy2211 merged 4 commits intomainfrom
feature/title-prefix-subplots

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Adds title_prefix: str = None to subplot_imaging_dataset and subplot_imaging_dataset_list so that the prefix set on a Plotter (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 optional title_prefix: str = None kwarg. 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 same title_prefix kwarg applied uniformly to all row panels.

See full details below.

Test Plan

  • 722 PyAutoArray tests pass
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 excluded
  • subplot_imaging_dataset_list(..., title_prefix: str = None) — prefix applied to Data/Noise Map/Signal-To-Noise Map panels

Migration

  • Before: callers had to hardcode titles with a prefix manually
  • After: pass title_prefix="VIS" and all applicable panels are prefixed "VIS Data", "VIS Noise-Map", etc.

🤖 Generated with Claude Code

Jammy2211 and others added 4 commits April 7, 2026 19:28
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>
@Jammy2211 Jammy2211 merged commit 2f19ea5 into main Apr 7, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/title-prefix-subplots branch April 7, 2026 18:42
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