Skip to content

Commit 7d33d98

Browse files
committed
Update resting state example with new colormap goodness
1 parent 2a700c1 commit 7d33d98

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

examples/plot_resting_correlations.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,8 @@
5050
We'll also plot the map with some transparency so that we can see through to the
5151
underlying anatomy.
5252
"""
53-
brain.add_data(surf_data_lh, -.7, .7, colormap="RdBu", alpha=.75, hemi='lh')
54-
brain.add_data(surf_data_rh, -.7, .7, colormap="RdBu", alpha=.75, hemi='rh')
55-
56-
"""
57-
We'll next flip the colormap so negative correlations are blue and positive
58-
correlations are red, which is better aligned with the conventions in fMRI
59-
visualization.
60-
"""
61-
for hemi in ["lh", "rh"]:
62-
for cbar in brain.data_dict[hemi]["colorbars"]:
63-
cbar.reverse_lut = True
53+
brain.add_data(surf_data_lh, -.7, .7, colormap="coolwarm", alpha=.75, hemi='lh')
54+
brain.add_data(surf_data_rh, -.7, .7, colormap="coolwarm", alpha=.75, hemi='rh')
6455

6556
"""
6657
This overlay represents resting-state correlations with a

0 commit comments

Comments
 (0)