netneurolab / netneurotools

Useful tools from the Network Neuroscience Lab
https://netneurolab.github.io/netneurotools
BSD 3-Clause "New" or "Revised" License
60 stars 32 forks source link

colormap: how to set it always centered on zero #112

Closed weimath closed 2 years ago

weimath commented 2 years ago

Hi, sir how to set colormap always centered on zero, when max~=-1*min. Thank you!

weimath commented 2 years ago

https://github.com/netneurolab/netneurotools/blob/3b4b5df63cadcda4c42418ea694b6bb6be419c54/netneurotools/plotting.py#L276

weimath commented 2 years ago

I get it, center = 0

thank you