nipy / PySurfer

Cortical neuroimaging visualization in Python
https://pysurfer.github.io/
BSD 3-Clause "New" or "Revised" License
240 stars 97 forks source link

Fix annotation colors #212

Closed wmvanvliet closed 6 years ago

wmvanvliet commented 6 years ago

When annotating the brain with a brain atlas, the colors are not always set right:

import surfer
brain = surfer.Brain('fsaverage', hemi='both', surf='inflated')
brain.add_annotation('aparc', borders=False)

fig1

This has to do with the reordering of cmap and the translation of the ids vector. This PR fixes it:

fig2

larsoner commented 6 years ago

Thanks @wmvanvliet