Skip to content

feat: enhanced 2D rendering (color_mode, show_labels, background_color) - #139

Open
ArielShadrac wants to merge 7 commits into
brainglobe:mainfrom
ArielShadrac:feat/enhanced-2d-rendering
Open

feat: enhanced 2D rendering (color_mode, show_labels, background_color)#139
ArielShadrac wants to merge 7 commits into
brainglobe:mainfrom
ArielShadrac:feat/enhanced-2d-rendering

Conversation

@ArielShadrac

Copy link
Copy Markdown

Summary

This PR adds optional rendering features to the 2D heatmap pipeline
introduced in #125. All additions are backward-compatible existing
code requires no changes.

New features

  • color_mode three colouring strategies: "heatmap" (default,
    continuous gradient), "atlas" (distinct pastel colours per region,
    Allen-style), "discrete" (one colour per region sampled from cmap)
  • show_labels draws region acronyms at the centre of mass of each
    connected component, with label_region_list, label_fontsize,
    label_color, label_bbox, label_min_area for fine control
  • background_color configurable figure background
  • _draw_region_labels internal helper for connected-component label
    placement
  • ATLAS_REGION_COLORS pastel palette inspired by the Allen Brain Atlas

Related

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