Skip to content

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

Open
gagnonanthony wants to merge 1 commit into
teanijarv:mainfrom
gagnonanthony:fix/vertexwise_lut
Open

FIX: add support for a LUT in plot_vertexwise()#16
gagnonanthony wants to merge 1 commit 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.

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