|
18 | 18 |
|
19 | 19 | # If the label lives in the normal place in the subjects directory,
|
20 | 20 | # you can plot it by just using the name
|
21 |
| -brain.add_label("BA1_exvivo") |
| 21 | +brain.add_label("BA1") |
22 | 22 |
|
23 | 23 | # Some labels have an associated scalar value at each ID in the label.
|
24 | 24 | # For example, they may be probabilistically defined. You can threshold
|
25 | 25 | # what vertices show up in the label using this scalar data
|
26 |
| -brain.add_label("BA1_exvivo", color="blue", scalar_thresh=.5) |
| 26 | +brain.add_label("BA1", color="blue", scalar_thresh=.5) |
27 | 27 |
|
28 | 28 | # Or you can give a path to a label in an arbitrary location
|
29 | 29 | subj_dir = brain.subjects_dir
|
30 | 30 | label_file = os.path.join(subj_dir, subject_id,
|
31 |
| - "label", "%s.MT_exvivo.label" % hemi) |
| 31 | + "label", "%s.MT.label" % hemi) |
32 | 32 | brain.add_label(label_file)
|
33 | 33 |
|
34 | 34 | # By default the label is 'filled-in', but you can
|
35 | 35 | # plot just the label boundaries
|
36 |
| -brain.add_label("BA44_exvivo", borders=True) |
| 36 | +brain.add_label("BA44", borders=True) |
37 | 37 |
|
38 | 38 | # You can also control the opacity of the label color
|
39 |
| -brain.add_label("BA6_exvivo", alpha=.7) |
| 39 | +brain.add_label("BA6", alpha=.7) |
40 | 40 |
|
41 | 41 | # Finally, you can plot the label in any color you want.
|
42 | 42 | brain.show_view(dict(azimuth=-42, elevation=105, distance=225,
|
43 | 43 | focalpoint=[-30, -20, 15]))
|
44 | 44 |
|
45 | 45 | # Use any valid matplotlib color.
|
46 |
| -brain.add_label("V1_exvivo", color="steelblue", alpha=.6) |
47 |
| -brain.add_label("V2_exvivo", color="#FF6347", alpha=.6) |
48 |
| -brain.add_label("entorhinal_exvivo", color=(.2, 1, .5), alpha=.6) |
| 46 | +brain.add_label("V1", color="steelblue", alpha=.6) |
| 47 | +brain.add_label("V2", color="#FF6347", alpha=.6) |
| 48 | +brain.add_label("entorhinal", color=(.2, 1, .5), alpha=.6) |
0 commit comments