DiedrichsenLab / SUITPy

Other
15 stars 5 forks source link

Add symmetric cmap #7

Closed winsonfzyang closed 1 year ago

winsonfzyang commented 1 year ago

I like this package as i'm using it for my analyses. I realized that there's no option to draw a symmetric colormap. Is it possible to add this as a feature? Thanks!

jdiedrichsen commented 1 year ago

With the new release (1.3.1) the threshold and cscale values work as intended.

A example of using a symmetric colormap to plot activation and deactivations is here:

https://suitpy.readthedocs.io/en/latest/notebooks/flatmap_example.html#Plotting-both-activations-and-deactivations

Nilearn has a number of standard neuroimaging colormaps that you can import and pass over the cmap argument.