MCPcopy Index your code
hub / github.com/mne-tools/mne-python / plot_approach

Function plot_approach

tutorials/simulation/80_dics.py:319–335  ·  view source on GitHub ↗

Plot the results on a brain.

(power, n)

Source from the content-addressed store, hash-verified

317
318
319def 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
338brain1 = plot_approach(power_approach1, 1)

Callers 1

80_dics.pyFile · 0.85

Calls 3

add_fociMethod · 0.80
show_viewMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected