Plot the results on a brain.
(power, n)
| 317 | |
| 318 | |
| 319 | def plot_approach(power, n): |
| 320 | """Plot the results on a brain.""" |
| 321 | title = f"DICS power map, approach {n}" |
| 322 | brain = power_approach1.plot( |
| 323 | "sample", |
| 324 | subjects_dir=subjects_dir, |
| 325 | hemi="both", |
| 326 | size=600, |
| 327 | time_label=title, |
| 328 | title=title, |
| 329 | ) |
| 330 | # Indicate the true locations of the source activity on the plot. |
| 331 | brain.add_foci(vertices[0][0], coords_as_verts=True, hemi="lh", color="b") |
| 332 | brain.add_foci(vertices[1][0], coords_as_verts=True, hemi="rh", color="b") |
| 333 | # Rotate the view and add a title. |
| 334 | brain.show_view(azimuth=0, elevation=0, distance=550, focalpoint=(0, 0, 0)) |
| 335 | return brain |
| 336 | |
| 337 | |
| 338 | brain1 = plot_approach(power_approach1, 1) |
no test coverage detected