atlas_region_contextual
atlas_region_contextual(atlas, pattern, match_on='region')Keep region geometry but remove from core/palette.
Context geometries render grey and don’t appear in legends.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| atlas | BrainAtlas | Brain atlas object. | required |
| pattern | str | Regex pattern to match (case-insensitive). | required |
| match_on | str | Column to match: ‘region’ or ‘label’. | 'region' |
Returns
| Name | Type | Description |
|---|---|---|
| BrainAtlas | Modified atlas copy. |