Note

This page is generated from a Jupyter notebook. Download the .ipynb from the sources, or open the paired jupytext .py under docs/tutorials/.

Component mosaic#

Hero combined image + per-layer colorized strip on a shared WCS. Guide (with light/dark layout figures): figures_and_mosaics.

[ ]:
import multicolorfits as mcf

Basic call#

s = mcf.McfSession()
s.load_files([...], colors=[...], labels=[...])
s.compose.combine_mode = 'lab'

fig, axes = mcf.make_component_mosaic(
    s,
    components='top',      # strip above hero; also bottom / left / right
    max_per_line=3,
    ticks='plain',          # plain | minimal | full
    overlays='hero',        # beam/compass/scale bar on hero only
)
fig.savefig('mosaic.png', dpi=150, bbox_inches='tight')

axes['combined'] is the hero; axes['components'] is the list of layer panels. Empty leftover cells in the strip stay blank for custom annotations.

Local regen scratch: examples/output/component_mosaic/ → copy into docs/_static/mosaics/ via docs/make_docs_figures.py (not committed).

[ ]:
print('mcf.make_component_mosaic — see guide/figures_and_mosaics.md')