Skip to content

FIX: add support for a LUT in plot_vertexwise() - #16

Merged
teanijarv merged 3 commits into
teanijarv:mainfrom
gagnonanthony:fix/vertexwise_lut
Oct 13, 2026
Merged

teanijarv merged 3 commits into
teanijarv:mainfrom
gagnonanthony:fix/vertexwise_lut

Conversation

@gagnonanthony

Copy link
Copy Markdown
Contributor

When plotting categorical data as the scalar, the cmap was not used as a lookup table, so it was normalized and returned non-matching colors, which was not expected.

This PR adds a lut parameter to plot_vertexwise() and feeds it into _render_cortical_views, which already supported lookup tables. I also added a fallback in case lut=None, where arbitrary colors will be used instead.

@teanijarv
teanijarv merged commit 1aaa643 into teanijarv:main Oct 13, 2026
3 checks passed
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.

2 participants