|
28 | 28 | The easiest way to label any vertex that could be in the region is with |
29 | 29 | add_label. |
30 | 30 | """ |
31 | | -brain.add_label("BA1_exvivo", color="#A6BDDB") |
| 31 | +brain.add_label("BA1", color="#A6BDDB") |
32 | 32 |
|
33 | 33 | """ |
34 | 34 | You can also threshold based on the probability of that region being at each |
35 | 35 | vertex. |
36 | 36 | """ |
37 | | -brain.add_label("BA1_exvivo", color="#2B8CBE", scalar_thresh=.5) |
| 37 | +brain.add_label("BA1", color="#2B8CBE", scalar_thresh=.5) |
38 | 38 |
|
39 | 39 | """ |
40 | 40 | It's also possible to plot just the label boundary, in case you wanted to |
41 | 41 | overlay the label on an activation plot to asses whether it falls within that |
42 | 42 | region. |
43 | 43 | """ |
44 | | -brain.add_label("BA45_exvivo", color="#F0F8FF", borders=3, scalar_thresh=.5) |
45 | | -brain.add_label("BA45_exvivo", color="#F0F8FF", alpha=.3, scalar_thresh=.5) |
| 44 | +brain.add_label("BA45", color="#F0F8FF", borders=3, scalar_thresh=.5) |
| 45 | +brain.add_label("BA45", color="#F0F8FF", alpha=.3, scalar_thresh=.5) |
46 | 46 |
|
47 | 47 | """ |
48 | 48 | Finally, with a few tricks, you can display the whole probabilistic map. |
49 | 49 | """ |
50 | 50 | subjects_dir = environ["SUBJECTS_DIR"] |
51 | | -label_file = join(subjects_dir, "fsaverage", "label", "lh.BA6_exvivo.label") |
| 51 | +label_file = join(subjects_dir, "fsaverage", "label", "lh.BA6.label") |
52 | 52 |
|
53 | 53 | prob_field = np.zeros_like(brain.geo['lh'].x) |
54 | 54 | ids, probs = read_label(label_file, read_scalars=True) |
|
0 commit comments