feat: enhanced 2D rendering (color_mode, show_labels, background_color) - #139
Open
ArielShadrac wants to merge 7 commits into
Open
feat: enhanced 2D rendering (color_mode, show_labels, background_color)#139ArielShadrac wants to merge 7 commits into
ArielShadrac wants to merge 7 commits into
Conversation
… Fixes ML-axis inversion and missing colours for parent regions.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
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
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_modethree colouring strategies:"heatmap"(default,continuous gradient),
"atlas"(distinct pastel colours per region,Allen-style),
"discrete"(one colour per region sampled fromcmap)show_labelsdraws region acronyms at the centre of mass of eachconnected component, with
label_region_list,label_fontsize,label_color,label_bbox,label_min_areafor fine controlbackground_colorconfigurable figure background_draw_region_labelsinternal helper for connected-component labelplacement
ATLAS_REGION_COLORSpastel palette inspired by the Allen Brain AtlasRelated